Skip to content

Commit

Permalink
chore: only lint staged files (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
timkurvers authored May 26, 2020
1 parent 3710a7c commit 375385f
Show file tree
Hide file tree
Showing 4 changed files with 918 additions and 132 deletions.
2 changes: 1 addition & 1 deletion husky.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
'hooks': {
'pre-commit': 'npm run lint',
'pre-commit': 'lint-staged',
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
};
3 changes: 3 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'*.{js,mjs}': ['eslint'],
};
Loading

0 comments on commit 375385f

Please sign in to comment.