Skip to content

Commit

Permalink
add husky and lint-staged [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
lbenie committed Apr 26, 2018
1 parent a9df04e commit 7a6cc16
Show file tree
Hide file tree
Showing 4 changed files with 401 additions and 8 deletions.
4 changes: 4 additions & 0 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
'pre-commit': 'lint-staged',
};

7 changes: 7 additions & 0 deletions lintstaged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
'*.js': [
'eslint --fix',
'git add',
],
};

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"eslint-plugin-jest": "^21.15.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"jest": "^22.4.3"
"husky": "^1.0.0-rc.2",
"jest": "^22.4.3",
"lint-staged": "^7.0.5"
}
}
Loading

0 comments on commit 7a6cc16

Please sign in to comment.