Skip to content

Commit

Permalink
🧶 lint staged (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgarropy authored Feb 23, 2021
1 parent c332b50 commit a921c22
Show file tree
Hide file tree
Showing 4 changed files with 1,458 additions and 23 deletions.
7 changes: 7 additions & 0 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const config = {
hooks: {
"pre-commit": "lint-staged",
},
}

module.exports = config
6 changes: 6 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const config = {
"*.{css,html,json,md,yml}": ["prettier --write"],
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
}

module.exports = config
Loading

0 comments on commit a921c22

Please sign in to comment.