From 4805027744f992f135eab0f3e2625080c0cea6eb Mon Sep 17 00:00:00 2001 From: Henry Zhu Date: Tue, 8 Aug 2017 20:15:48 -0400 Subject: [PATCH] add fix command for eslint --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index fdd524d82..502140c9b 100644 --- a/package.json +++ b/package.json @@ -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",