Skip to content

Commit

Permalink
add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent C. Dodds committed Aug 14, 2019
1 parent cc6fdf9 commit a1e30ee
Show file tree
Hide file tree
Showing 4 changed files with 758 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .huskyrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"hooks": {
"pre-commit": "npm run validate"
"pre-commit": "npm run check-types && lint-staged"
}
}
9 changes: 9 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"*.js": [
"eslint"
],
"*.+(js|json|ts)": [
"prettier --write",
"git add"
]
}
Loading

0 comments on commit a1e30ee

Please sign in to comment.