Skip to content

Commit

Permalink
ci: setup husky & lint-staged & commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
shine1594 committed Nov 17, 2021
1 parent 5c7e31c commit e9a7dc8
Show file tree
Hide file tree
Showing 5 changed files with 2,948 additions and 53 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
extends: ["@commitlint/config-conventional"]
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit ""
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run pre-commit
Loading

0 comments on commit e9a7dc8

Please sign in to comment.