Skip to content

Commit

Permalink
Add husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
hagopj13 committed Oct 25, 2019
1 parent 403e943 commit fab2718
Show file tree
Hide file tree
Showing 4 changed files with 805 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .huskyrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"hooks": {
"post-checkout": "npm install",
"pre-commit": "lint-staged",
"post-commit": "git status"
}
}
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.js": "eslint"
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"nodemon": "^1.19.4",
"prettier": "^1.18.2"
}
Expand Down
Loading

0 comments on commit fab2718

Please sign in to comment.