Skip to content

Commit

Permalink
Chore: setup commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Jun 22, 2023
1 parent fc2ed74 commit ba702bc
Show file tree
Hide file tree
Showing 4 changed files with 46 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"
25 changes: 25 additions & 0 deletions commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
rules:
type-enum:
- 2
- always
- - Build
- CI
- Chore
- Docs
- Feat!
- Feat
- Fix
- Perf
- Refactor
- Revert
- Style
- Test
- Wip
type-empty:
- 2
- never
scope-enum:
- 2
- always
- - flodash
- enhanced-http
16 changes: 16 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.1"
change_case:
dependency: transitive
description:
name: change_case
sha256: f4e08feaa845e75e4f5ad2b0e15f24813d7ea6c27e7b78252f0c17f752cf1157
url: "https://pub.dev"
source: hosted
version: "1.1.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -89,6 +97,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.17.1"
commitlint_cli:
dependency: "direct dev"
description:
name: commitlint_cli
sha256: bebf4e432856495363fa99c1e0ed33f8fe5f9128f5a280c0bb42aa996322e3d0
url: "https://pub.dev"
source: hosted
version: "0.4.1"
conventional_commit:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
yaml_edit: ^2.1.0

dev_dependencies:
commitlint_cli: 0.4.1
flutter_lints: 1.0.0
husky: 0.1.6
lint_staged: 0.3.0
Expand Down

0 comments on commit ba702bc

Please sign in to comment.