Skip to content

Commit

Permalink
Merge pull request #9 from 0xJurassicPunk/commitlint-config
Browse files Browse the repository at this point in the history
ci: Commitlint
  • Loading branch information
0xJurassicPunk committed Apr 28, 2022
2 parents e8cc5c4 + c9204bd commit 1fdfa4a
Show file tree
Hide file tree
Showing 4 changed files with 673 additions and 30 deletions.
29 changes: 29 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"subject-case": [
2,
"always",
"sentence-case"
],
"type-enum": [
2,
"always",
[
"build",
"ci",
"chore",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
}
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 @@ -39,6 +39,8 @@
"test:coverage": "hardhat coverage && hardhat compile --force"
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-etherscan": "^3.0.0",
"@nomiclabs/hardhat-waffle": "^2.0.0",
Expand Down
Loading

0 comments on commit 1fdfa4a

Please sign in to comment.