Skip to content

Commit

Permalink
chore: add commitlint (#11)
Browse files Browse the repository at this point in the history
* chore: add commitlint
* fix: package.json formatting
  • Loading branch information
Catherine Zaslavsckaya committed Sep 6, 2021
1 parent d963576 commit fd0f944
Show file tree
Hide file tree
Showing 4 changed files with 764 additions and 2 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"

yarn commitlint --edit $1
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"prettier": "^2.3.2"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"husky": "^7.0.2",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2"
Expand Down
Loading

0 comments on commit fd0f944

Please sign in to comment.