Skip to content

Commit ffece03

Browse files
authored
chore: add in commitlint (aave#987)
* chore: install commitlint packages * chore: add conventional commit confg and commit-msg hook
1 parent 0efce35 commit ffece03

File tree

4 files changed

+679
-24
lines changed

4 files changed

+679
-24
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit "${1}"

commitlint.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
// See https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
3+
extends: ['@commitlint/config-conventional'],
4+
};

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
"devDependencies": {
8484
"@babel/core": "^7.18.9",
8585
"@babel/plugin-proposal-class-properties": "^7.18.6",
86+
"@commitlint/cli": "^17.0.3",
87+
"@commitlint/config-conventional": "^17.0.3",
8688
"@ethersproject/experimental": "^5.5.0",
8789
"@ethersproject/providers": "^5.5.3",
8890
"@lingui/cli": "^3.13.2",

0 commit comments

Comments
 (0)