Skip to content

Commit

Permalink
fix: lint-staged settings
Browse files Browse the repository at this point in the history
  • Loading branch information
QuaidBartolomei committed Nov 9, 2021
1 parent 942c2af commit 7d6dafe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
dist/
coverage/
node_modules/
package-lock.json
*.css
package-lock.json
6 changes: 4 additions & 2 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
'*.{js,jsx,ts,tsx,html,css}': ['prettier --write', 'eslint --fix'],
'*.{md,json,yml,yaml}': ['prettier --write'],
// format all file types recognized by prettier
'*': ['prettier --ignore-unknown --write'],
// lint javascript after formatting
'*.{js,jsx}': ['eslint --fix --cache'],
};

0 comments on commit 7d6dafe

Please sign in to comment.