Skip to content

Commit

Permalink
fix: linting to error on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Jun 8, 2020
1 parent 58cf176 commit 9cd8c89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
'*.{js,ts,tsx}': ['yarn lint:fix'],
// TODO: make this `lint:fix` if ever added to `pre-commit`
// using in `commit-msg` doesn't save fixed changes so
// in the meantime should error on bad linting when committing
'*.{js,ts,tsx}': ['yarn lint'],
};

0 comments on commit 9cd8c89

Please sign in to comment.