Skip to content

Commit

Permalink
added husky and lint staged following the guide, havent tried though
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandontam29 committed Jul 26, 2022
1 parent d0b287d commit 118c159
Show file tree
Hide file tree
Showing 2 changed files with 2,114 additions and 1,871 deletions.
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
"lint:fix": "eslint --fix --ext .ts --ext .tsx .",
"test": "jest"
},
"lint-staged": {
"src/**/*.{ts,css,html}": [
"npm run lint:check"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run test"
}
},
"eslintConfig": {
"extends": [
"react-app",
Expand Down Expand Up @@ -91,6 +102,8 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.25.2",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"react-scripts": "4.0.3",
Expand Down
Loading

0 comments on commit 118c159

Please sign in to comment.