Skip to content

Commit

Permalink
chore: add lint-staged and husky
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicone committed Jul 29, 2019
1 parent d18d021 commit 313d522
Show file tree
Hide file tree
Showing 2 changed files with 519 additions and 10 deletions.
17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-prettier": "^2.1.2",
"eslint-plugin-react": "^7.1.0",
"husky": ">=1",
"lint-staged": ">=8",
"prettier": "^1.18.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.{js,json,css,scss,md,mdx,yaml}": [
"prettier --write",
"git add"
]
}
}
Loading

0 comments on commit 313d522

Please sign in to comment.