add linting for tests too

This commit is contained in:
Tobias Koppers 2017-11-15 14:07:53 +01:00
parent b7c746d73f
commit a05e9c7bc2
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ module.exports = {
"env": { "env": {
"node": true, "node": true,
"es6": true, "es6": true,
"mocha": true,
}, },
"parserOptions": { "ecmaVersion": 2017 }, "parserOptions": { "ecmaVersion": 2017 },
"rules": { "rules": {

View File

@ -103,7 +103,7 @@
"build:examples": "cd examples && node buildAll.js", "build:examples": "cd examples && node buildAll.js",
"pretest": "npm run lint-files", "pretest": "npm run lint-files",
"lint-files": "npm run lint && npm run beautify-lint", "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\"", "lint": "eslint lib bin hot buildin \"test/*.js\" \"test/**/webpack.config.js\" \"test/binCases/**/test.js\" \"examples/**/webpack.config.js\"",
"fix": "npm run lint -- --fix", "fix": "npm run lint -- --fix",
"beautify-lint": "beautify-lint \"lib/**/*.js\" \"hot/**/*.js\" \"bin/**/*.js\" \"benchmark/*.js\" \"test/*.js\"", "beautify-lint": "beautify-lint \"lib/**/*.js\" \"hot/**/*.js\" \"bin/**/*.js\" \"benchmark/*.js\" \"test/*.js\"",
"nsp": "nsp check --output summary", "nsp": "nsp check --output summary",