File tree 2 files changed +522
-12
lines changed
2 files changed +522
-12
lines changed Original file line number Diff line number Diff line change 50
50
"express" : " ~4.13.1" ,
51
51
"file-loader" : " ^1.1.6" ,
52
52
"glob" : " ^7.1.2" ,
53
+ "husky" : " ^1.0.0-rc.6" ,
53
54
"i18n-webpack-plugin" : " ^1.0.0" ,
54
55
"istanbul" : " ^0.4.5" ,
55
56
"jade" : " ^1.11.0" ,
59
60
"json-loader" : " ^0.5.7" ,
60
61
"less" : " ^2.5.1" ,
61
62
"less-loader" : " ^4.0.3" ,
63
+ "lint-staged" : " ^7.1.0" ,
62
64
"lodash" : " ^4.17.4" ,
63
65
"prettier" : " ^1.13.5" ,
64
66
"pug" : " ^2.0.3" ,
131
133
"cover:unit" : " node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \" <rootDir>/test/*.unittest.js\" --coverage" ,
132
134
"cover:report" : " istanbul report"
133
135
},
136
+ "husky" : {
137
+ "hooks" : {
138
+ "pre-commit" : " lint-staged"
139
+ }
140
+ },
141
+ "lint-staged" : {
142
+ "lib/**/*.js" : [
143
+ " eslint --cache"
144
+ ]
145
+ },
134
146
"jest" : {
135
147
"forceExit" : true ,
136
148
"setupTestFrameworkScriptFile" : " <rootDir>/test/setupTestFramework.js" ,
You can’t perform that action at this time.
0 commit comments