Skip to content

Commit 4dd5b78

Browse files
committed
🔧 chore: fix commitlint config local setup
1 parent 2ed311d commit 4dd5b78

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx --no-install commitlint --edit $1
4+
npx --no -- commitlint --edit ${1}

commitlint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['./packages/commitlint-config'],
2+
extends: ['gitmoji'],
33
};

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"lint-staged:js": "eslint --cache --ext .js,.jsx,.ts,.tsx",
2222
"lint-styles": "stylelint",
2323
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx ",
24+
"prepare": "husky install",
2425
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
2526
"release": "multi-semantic-release",
2627
"release:local": "multi-semantic-release --no-ci",
@@ -38,15 +39,14 @@
3839
]
3940
},
4041
"devDependencies": {
41-
"@commitlint/lint": "^17",
42+
"@commitlint/cli": "^17",
4243
"@types/jest": "^29",
4344
"@types/node": "^16",
4445
"@types/semantic-release": "^17",
4546
"@types/sinon": "^10.0.0",
4647
"@umijs/max": "^4",
4748
"@umijs/test": "^4",
4849
"babel-plugin-add-module-exports": "^1",
49-
"commitlint": "^17",
5050
"commitlint-config-gitmoji": "^2",
5151
"conventional-changelog-gitmoji-config": "^1",
5252
"eslint": "^8",

0 commit comments

Comments
 (0)