add fix command for eslint

This commit is contained in:
Henry Zhu 2017-08-08 20:15:48 -04:00 committed by GitHub
parent 0059bcf241
commit 4805027744
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@
"pretest": "npm run lint-files",
"lint-files": "npm run lint && npm run beautify-lint",
"lint": "eslint lib bin hot buildin \"test/**/webpack.config.js\" \"test/binCases/**/test.js\" \"examples/**/webpack.config.js\"",
"fix": "npm run lint -- --fix",
"beautify-lint": "beautify-lint \"lib/**/*.js\" \"hot/**/*.js\" \"bin/**/*.js\" \"benchmark/*.js\" \"test/*.js\"",
"nsp": "nsp check --output summary",
"benchmark": "mocha --max-old-space-size=4096 --harmony test/*.benchmark.js -R spec",