We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29a7e13 commit 9afc0fcCopy full SHA for 9afc0fc
.lintstagedrc
@@ -0,0 +1,5 @@
1
+{
2
+ "*.(js|vue)": [
3
+ "npm run lint:es"
4
+ ]
5
+}
husky.config.js
@@ -1,7 +1,7 @@
module.exports = {
hooks: {
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
- 'pre-commit': 'npm run lint',
- 'pre-push': 'npm run lint && npx branch-name-lint .branchlintrc'
+ 'pre-commit': 'lint-staged',
+ 'pre-push': 'npx branch-name-lint .branchlintrc'
6
}
7
};
0 commit comments