We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f92b4e commit 5df9896Copy full SHA for 5df9896
package.json
@@ -31,15 +31,21 @@
31
"devDependencies": {
32
"eslint": "~4.6.1",
33
"eslint-config-hudochenkov": "~2.0.0",
34
- "jest": "^21.1.0"
+ "husky": "^0.14.3",
35
+ "jest": "^21.1.0",
36
+ "lint-staged": "^4.1.3"
37
},
38
"scripts": {
- "test": "jest && npm run lint",
39
+ "precommit": "lint-staged",
40
+ "test": "npm run lint && jest",
41
"jest": "jest",
42
"watch": "jest --watch",
43
"coverage": "jest --coverage",
44
"lint": "eslint *.js 'lib/**/*.js'"
45
46
+ "lint-staged": {
47
+ "*.js": ["npm run lint -- --fix", "git add"]
48
+ },
49
"jest": {
50
"setupFiles": [
51
"./jest-setup.js"
0 commit comments