File tree 3 files changed +194
-6
lines changed
3 files changed +194
-6
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npm run precommit
Original file line number Diff line number Diff line change 56
56
"lint-config-and-fix" : " fixpack || fixpack" ,
57
57
"postinstall" : " npm run install-hooks" ,
58
58
"postpublish" : " pinst --enable" ,
59
+ "precommit" : " lint-staged" ,
59
60
"prepare" : " npm run build" ,
60
61
"prepublishOnly" : " pinst --disable" ,
61
62
"release" : " np --message ':hatching_chick: release: Bumping to v%s.'" ,
88
89
"esdoc-standard-plugin" : " 1.0.0" ,
89
90
"fixpack" : " 4.0.0" ,
90
91
"husky" : " 8.0.1" ,
92
+ "lint-staged" : " 13.0.3" ,
91
93
"microbundle" : " 0.15.1" ,
92
94
"np" : " 7.4.0" ,
93
95
"pinst" : " 3.0.0" ,
187
189
}
188
190
}
189
191
},
192
+ "lint-staged" : {
193
+ "*.js" : [
194
+ " npm run lint-and-fix"
195
+ ],
196
+ "package.json" : [
197
+ " npm run lint-config-and-fix"
198
+ ]
199
+ },
190
200
"prettier" : {
191
201
"trailingComma" : " all"
192
202
},
You can’t perform that action at this time.
0 commit comments