Skip to content

Commit a7fc4e0

Browse files
committed
update
1 parent 1f6a4eb commit a7fc4e0

File tree

2 files changed

+382
-11
lines changed

2 files changed

+382
-11
lines changed

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,20 @@
7373
"webpack-manifest-plugin": "2.0.4",
7474
"workbox-webpack-plugin": "4.3.1"
7575
},
76+
"lint-staged": {
77+
"src/*.{js,jsx,mjs,ts,tsx}": [
78+
"node_modules/.bin/prettier --write",
79+
"node_modules/.bin/eslint --fix",
80+
"git add"
81+
],
82+
"src/*.{css,scss,less,json,html,md,markdown}": [
83+
"node_modules/.bin/prettier --write",
84+
"git add"
85+
]
86+
},
7687
"husky": {
7788
"hooks": {
78-
"pre-commit": "npm run lint && pretty-quick --staged"
89+
"pre-commit": "lint-staged"
7990
}
8091
},
8192
"scripts": {
@@ -162,6 +173,7 @@
162173
"eslint-plugin-prettier": "^3.1.1",
163174
"eslint-plugin-react": "^7.12.4",
164175
"husky": "^3.1.0",
176+
"lint-staged": "^9.4.3",
165177
"prettier": "1.19.1",
166178
"pretty-quick": "^2.0.1"
167179
},

0 commit comments

Comments
 (0)