mirror of https://github.com/webpack/webpack.git
add linting for tests too
This commit is contained in:
parent
b7c746d73f
commit
a05e9c7bc2
|
@ -5,6 +5,7 @@ module.exports = {
|
|||
"env": {
|
||||
"node": true,
|
||||
"es6": true,
|
||||
"mocha": true,
|
||||
},
|
||||
"parserOptions": { "ecmaVersion": 2017 },
|
||||
"rules": {
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
"build:examples": "cd examples && node buildAll.js",
|
||||
"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\"",
|
||||
"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",
|
||||
"beautify-lint": "beautify-lint \"lib/**/*.js\" \"hot/**/*.js\" \"bin/**/*.js\" \"benchmark/*.js\" \"test/*.js\"",
|
||||
"nsp": "nsp check --output summary",
|
||||
|
|
Loading…
Reference in New Issue