mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
chore: move Husky configuration to .husky as per v5 documentation
Closes #98.
This commit is contained in:
parent
8752887edd
commit
9c6fd10d06
4 changed files with 8 additions and 6 deletions
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
_
|
||||
3
.husky/commit-msg
Executable file
3
.husky/commit-msg
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
npx --no-install commitlint --edit "${1}"
|
||||
3
.husky/pre-commit
Executable file
3
.husky/pre-commit
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
npx --no-install lint-staged
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
"private": true,
|
||||
"main": "run.js",
|
||||
"scripts": {
|
||||
"postinstall": "husky install",
|
||||
"test": "NODE_PATH=./node_modules jest",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||
"lint": "eslint --ignore-path .gitignore ."
|
||||
|
|
@ -57,11 +58,5 @@
|
|||
"standard-version": "^9.1.0",
|
||||
"testdouble": "^3.16.1",
|
||||
"yaml": "^1.10.0"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue