chore: update husky to v5

This commit is contained in:
vben
2021-02-09 22:36:44 +08:00
parent 64533f6204
commit 2b466eaf9a
8 changed files with 99 additions and 115 deletions

8
.husky/lintstagedrc.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
'*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'],
'{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --write--parser json'],
'package.json': ['prettier --write'],
'*.vue': ['prettier --write', 'stylelint --fix'],
'*.{scss,less,styl,css,html}': ['stylelint --fix', 'prettier --write'],
'*.md': ['prettier --write'],
};