Skip to content

Commit 8aa8a7b

Browse files
authored
Merge pull request webpack#4737 from ndresx/lint-glob-errors-fix
Fix lint errors and normalize lint globs in package.json
2 parents 25ae65e + aea0e64 commit 8aa8a7b

7 files changed

Lines changed: 11 additions & 9 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/dll-plugin/1-use-dll/webpack.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var webpack = require("../../../../");
33
module.exports = {
44
plugins: [
55
new webpack.DllReferencePlugin({
6-
manifest: require("../../../js/config/dll-plugin/manifest0.json"),
6+
manifest: require("../../../js/config/dll-plugin/manifest0.json"), // eslint-disable-line node/no-missing-require
77
name: "../0-create-dll/dll.js",
88
scope: "dll",
99
sourceType: "commonjs2",

‎test/configCases/dll-plugin/2-use-dll-without-scope/webpack.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
},
1818
plugins: [
1919
new webpack.DllReferencePlugin({
20-
manifest: require("../../../js/config/dll-plugin/manifest0.json"),
20+
manifest: require("../../../js/config/dll-plugin/manifest0.json"), // eslint-disable-line node/no-missing-require
2121
name: "../0-create-dll/dll.js",
2222
context: path.resolve(__dirname, "../0-create-dll"),
2323
sourceType: "commonjs2"

‎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)