Skip to content

Commit 9afc0fc

Browse files
author
Thorn Walli
committed
chore(lintstage): test
1 parent 29a7e13 commit 9afc0fc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.lintstagedrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"*.(js|vue)": [
3+
"npm run lint:es"
4+
]
5+
}

husky.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
hooks: {
33
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
4-
'pre-commit': 'npm run lint',
5-
'pre-push': 'npm run lint && npx branch-name-lint .branchlintrc'
4+
'pre-commit': 'lint-staged',
5+
'pre-push': 'npx branch-name-lint .branchlintrc'
66
}
77
};

0 commit comments

Comments
 (0)