Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de581e9

Browse files
committed
Update husky
1 parent 90bc1a6 commit de581e9

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"prepublish": "run-s clean build",
1212
"test": "run-p test:* lint",
1313
"test:ava": "ava",
14-
"coverage": "nyc ava",
15-
"precommit": "lint-staged"
14+
"coverage": "nyc ava"
1615
},
1716
"peerDependencies": {
1817
"react-intl": "^2.2.2",
@@ -43,7 +42,7 @@
4342
"eslint-config-concise-esnext": "^0.30.1",
4443
"eslint-config-concise-react": "^0.30.1",
4544
"eslint-plugin-react": "^7.11.1",
46-
"husky": "^0.14.3",
45+
"husky": "^1.0.1",
4746
"immutable": "^3.8.2",
4847
"intl": "^1.2.5",
4948
"jsdom": "^12.0.0",
@@ -102,6 +101,11 @@
102101
"comma-dangle": "off"
103102
}
104103
},
104+
"husky": {
105+
"hooks": {
106+
"pre-commit": "lint-staged"
107+
}
108+
},
105109
"lint-staged": {
106110
"*.js": [
107111
"eslint --fix",

0 commit comments

Comments
 (0)