Skip to content

Commit

Permalink
fix: husky
Browse files Browse the repository at this point in the history
  • Loading branch information
tianenpang committed Sep 23, 2023
1 parent 223dc1d commit 9f79e19
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
9 changes: 9 additions & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* Commitlint Config
*/
const commitlintConfig = {
extends: ['@commitlint/config-conventional'],
plugins: ['commitlint-plugin-function-rules']
};

module.exports = commitlintConfig;
21 changes: 0 additions & 21 deletions .commitlintrc.ts

This file was deleted.

2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm commitlint --config .commitlintrc.ts --edit ${1}
pnpm commitlint --config .commitlintrc.cjs --edit ${1}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"link:remove": "pnpm uninstall --global nextui-cli",
"build": "tsup",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . -max-warnings=0 --fix"
"lint:fix": "eslint . -max-warnings=0 --fix",
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "17.7.1",
Expand Down

0 comments on commit 9f79e19

Please sign in to comment.