File tree Expand file tree Collapse file tree 2 files changed +522
-12
lines changed Expand file tree Collapse file tree 2 files changed +522
-12
lines changed Original file line number Diff line number Diff line change 5050 "express" : " ~4.13.1" ,
5151 "file-loader" : " ^1.1.6" ,
5252 "glob" : " ^7.1.2" ,
53+ "husky" : " ^1.0.0-rc.6" ,
5354 "i18n-webpack-plugin" : " ^1.0.0" ,
5455 "istanbul" : " ^0.4.5" ,
5556 "jade" : " ^1.11.0" ,
5960 "json-loader" : " ^0.5.7" ,
6061 "less" : " ^2.5.1" ,
6162 "less-loader" : " ^4.0.3" ,
63+ "lint-staged" : " ^7.1.0" ,
6264 "lodash" : " ^4.17.4" ,
6365 "prettier" : " ^1.13.5" ,
6466 "pug" : " ^2.0.3" ,
131133 "cover:unit" : " node --max-old-space-size=4096 node_modules/jest-cli/bin/jest --testMatch \" <rootDir>/test/*.unittest.js\" --coverage" ,
132134 "cover:report" : " istanbul report"
133135 },
136+ "husky" : {
137+ "hooks" : {
138+ "pre-commit" : " lint-staged"
139+ }
140+ },
141+ "lint-staged" : {
142+ "lib/**/*.js" : [
143+ " eslint --cache"
144+ ]
145+ },
134146 "jest" : {
135147 "forceExit" : true ,
136148 "setupTestFrameworkScriptFile" : " <rootDir>/test/setupTestFramework.js" ,
You can’t perform that action at this time.
0 commit comments