Skip to content

Commit

Permalink
Add husky and lint-staged
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

hagopj13 committed Oct 25, 2019
1 parent 403e943 commit fab2718
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
@@ -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"
}
804 changes: 793 additions & 11 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit fab2718

Please sign in to comment.