Skip to content

Commit

Permalink
feat: adding husky and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MadaraUchiha-314 committed Mar 29, 2020
1 parent a3a4d83 commit 93454b4
Show file tree
Hide file tree
Showing 2 changed files with 292 additions and 6 deletions.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
"build": "webpack --config webpack.config.js",
"start": "webpack-dev-server --mode development"
},
"husky": {
"hooks": {
"pre-commit": "npx eslint --ext .jsx --ext .js src/** --fix --no-error-on-unmatched-pattern && pretty-quick --staged",
"pre-push": "npx eslint --ext .jsx --ext .js src/** && npm run build && npm run test"
}
},
"author": {
"name": "Rohith R",
"email": "rohithr31@gmail.com"
Expand All @@ -33,6 +39,9 @@
"eslint-plugin-react": "^7.19.0",
"file-loader": "^6.0.0",
"html-loader": "^1.0.0",
"husky": "^4.2.3",
"prettier": "^2.0.2",
"pretty-quick": "^2.0.1",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.10.3"
Expand Down
Loading

0 comments on commit 93454b4

Please sign in to comment.