5
0
Fork 0
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 (#101)

Closes #98.
This commit is contained in:
Jeroen de Bruijn 2021-02-25 13:43:24 +01:00 committed by GitHub
parent 8752887edd
commit 657daf298c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

1
.husky/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
_

3
.husky/commit-msg Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
npx --no-install commitlint --edit "${1}"

3
.husky/pre-commit Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
npx --no-install lint-staged

View file

@ -5,6 +5,7 @@
"private": true, "private": true,
"main": "run.js", "main": "run.js",
"scripts": { "scripts": {
"postinstall": "husky install",
"test": "NODE_PATH=./node_modules jest", "test": "NODE_PATH=./node_modules jest",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"lint": "eslint --ignore-path .gitignore ." "lint": "eslint --ignore-path .gitignore ."
@ -57,11 +58,5 @@
"standard-version": "^9.1.0", "standard-version": "^9.1.0",
"testdouble": "^3.16.1", "testdouble": "^3.16.1",
"yaml": "^1.10.0" "yaml": "^1.10.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
} }
} }