Skip to content

Commit 2eef9e6

Browse files
committed
Enable linting for some forgotten files
And fix the lint errors.
1 parent f5d7912 commit 2eef9e6

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
@@ -164,7 +164,7 @@ function processOptions(wpOpt) {
164164

165165
if(argv["stdin"]) {
166166
process.stdin.on('end', function() {
167-
process.exit(0);
167+
process.exit(0); // eslint-disable-line no-process-exit
168168
});
169169
process.stdin.resume();
170170
}

client/index.js

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

7373
// Try to reconnect.
7474
sock = null;
75-
setTimeout(function () {
75+
setTimeout(function() {
7676
newConnection();
7777
}, 2000);
7878
};

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
@@ -53,7 +53,7 @@
5353
],
5454
"scripts": {
5555
"prepublish": "webpack ./client/live.js client/live.bundle.js --color --config client/webpack.config.js -p && webpack ./client/index.js client/index.bundle.js --color --config client/webpack.config.js -p",
56-
"lint": "eslint lib test",
56+
"lint": "eslint bin lib test client/{index,live,webpack.config}.js",
5757
"beautify-lint": "beautify-lint lib/**.js bin/**.js",
5858
"beautify": "beautify-rewrite lib/**.js bin/**.js",
5959
"travis": "npm run lint && npm run beautify-lint && node lib/Server.js"

0 commit comments

Comments
 (0)