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 585daf0 commit 9ae6fc8Copy full SHA for 9ae6fc8
package.json
@@ -18,8 +18,7 @@
18
"prepublish": "npm run lint && npm run clean && npm run build:prod && npm run transpile",
19
"prettier": "npx prettier --write src/**/*.js example/**/*.js *.js",
20
"lint": "npx eslint --fix --ext js .",
21
- "format": "npm run prettier && npm run lint",
22
- "precommit": "lint-staged"
+ "format": "npm run prettier && npm run lint"
23
},
24
"lint-staged": {
25
"*.js": [
@@ -82,5 +81,10 @@
82
81
"webpack-bundle-analyzer": "^3.0.3",
83
"webpack-cli": "^3.1.2",
84
"webpack-dev-server": "^3.1.9"
+ },
85
+ "husky": {
86
+ "hooks": {
87
+ "pre-commit": "lint-staged"
88
+ }
89
}
90
0 commit comments