Skip to content

Commit 838b58a

Browse files
committed
Enable linting for some forgotten files
And fix the lint errors.
1 parent 9973128 commit 838b58a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bin/webpack-dev-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if(!options.watchOptions)
9494

9595
if(argv["stdin"]) {
9696
process.stdin.on('end', function() {
97-
process.exit(0);
97+
process.exit(0); // eslint-disable-line no-process-exit
9898
});
9999
process.stdin.resume();
100100
}

client/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ var newConnection = function() {
7070

7171
// Try to reconnect.
7272
sock = null;
73-
setTimeout(function () {
73+
setTimeout(function() {
7474
newConnection();
7575
}, 2000);
7676
};

client/live.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var newConnection = function(handlers) {
1515

1616
// Try to reconnect.
1717
sock = null;
18-
setTimeout(function () {
18+
setTimeout(function() {
1919
newConnection(handlers);
2020
}, 2000);
2121
};

client/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ module.exports = {
88
node: {
99
fs: "empty"
1010
}
11-
}
11+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
],
5353
"scripts": {
5454
"prepublish": "webpack ./client/live.js client/live.bundle.js --colors --config client/webpack.config.js -p && webpack ./client/index.js client/index.bundle.js --colors --config client/webpack.config.js -p",
55-
"lint": "eslint lib test",
55+
"lint": "eslint bin lib test client/{index,live,webpack.config}.js",
5656
"beautify-lint": "beautify-lint lib/**.js bin/**.js",
5757
"beautify": "beautify-rewrite lib/**.js bin/**.js",
5858
"travis": "npm run lint && npm run beautify-lint && node lib/Server.js"

0 commit comments

Comments
 (0)