chore: precommit config
This commit is contained in:
parent
ef3d233d4e
commit
660117664d
2 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ module.exports = {
|
|||
'*': ['eclint fix', 'git add'],
|
||||
'*.js': ['eslint --fix', 'prettier --write', 'git add'],
|
||||
'*.md': ['prettier --write', 'markdownlint', 'git add'],
|
||||
'yarn.lock': ['node ./scripts/yarn-lock-scan.js'],
|
||||
'*package.json': absolutePaths => {
|
||||
const sortPackages = [];
|
||||
absolutePaths.forEach(p => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
module.exports = {
|
||||
hooks: {
|
||||
'pre-commit': 'lint-staged && node ./scripts/yarn-lock-scan.js',
|
||||
'pre-commit': 'lint-staged',
|
||||
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue