Skip to content

Commit

Permalink
chore: add husky and commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
pulgueta committed Sep 4, 2024
1 parent c5f11de commit 12f5928
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

dart run commitlint_cli --edit "$1"
18 changes: 18 additions & 0 deletions commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
include: package:commitlint_cli/commitlint.yaml

rules:
type-case:
- 2
- 'always'
- 'lower-case'
type-enum:
- 2
- 'always'
- [
'feat',
'fix',
'docs',
'refactor',
'test',
'chore'
]
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ dependencies:
# path: ^1.8.0

dev_dependencies:
commitlint_cli: ^0.7.1
husky: ^0.1.7
lints: ^4.0.0
test: ^1.24.0

0 comments on commit 12f5928

Please sign in to comment.