Skip to content

Commit c9c92c5

Browse files
committed
Fixed lint errors and normalized lint globs in package.json
1 parent 25ae65e commit c9c92c5

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@
9797
"build:examples": "cd examples && node buildAll.js",
9898
"pretest": "npm run lint-files",
9999
"lint-files": "npm run lint && npm run beautify-lint",
100-
"lint": "eslint lib bin hot buildin test/**/webpack.config.js test/binCases/**/test.js examples/**/webpack.config.js",
101-
"beautify-lint": "beautify-lint 'lib/**/*.js' 'hot/**/*.js' 'bin/**/*.js' 'benchmark/*.js' 'test/*.js'",
100+
"lint": "eslint lib bin hot buildin \"test/**/webpack.config.js\" \"test/binCases/**/test.js\" \"examples/**/webpack.config.js\"",
101+
"beautify-lint": "beautify-lint \"lib/**/*.js\" \"hot/**/*.js\" \"bin/**/*.js\" \"benchmark/*.js\" \"test/*.js\"",
102102
"nsp": "nsp check --output summary",
103103
"benchmark": "mocha test/*.benchmark.js --harmony -R spec",
104104
"cover": "node --harmony ./node_modules/istanbul/lib/cli.js cover -x '**/*.runtime.js' node_modules/mocha/bin/_mocha -- test/*.test.js",

‎test/configCases/parsing/extended-api/webpack.config.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
var webpack = require("../../../../");
1+
"use strict";
2+
const webpack = require("../../../../");
23

34
module.exports = {
45
entry: {
5-
other: './index'
6+
other: "./index"
67
},
78
plugins: [
89
new webpack.ExtendedAPIPlugin()

‎test/statsCases/filter-warnings/webpack.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use strict";
2-
const webpack = require("webpack");
2+
const webpack = require("../../../");
33

44
const baseConfig = {
55
entry: "./index",

‎test/statsCases/resolve-plugin-context/webpack.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const ResolvePackageFromRootPlugin = require("./ResolvePackageFromRootPlugin");
1+
var ResolvePackageFromRootPlugin = require("./ResolvePackageFromRootPlugin");
22

33
module.exports = {
44
entry: "./index",

‎test/statsCases/warnings-uglifyjs/webpack.config.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
var webpack = require("webpack");
1+
"use strict";
2+
const webpack = require("../../../");
23

34
module.exports = {
45
entry: "./index",

0 commit comments

Comments
 (0)