Skip to content

Commit 12e9a27

Browse files
committed
Fix inconsistencies with semi colons
1 parent af6243b commit 12e9a27

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"rules": {
66
"indent": [2, "tab", { "SwitchCase": 1 }],
77
"brace-style": ["error", "1tbs"],
8+
"semi": "error",
89
"no-eval": "error",
910
"eol-last": "error",
1011
"no-redeclare": "error",

middleware.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ var defaultReporter = function(reporterOptions) {
2020
options.noInfo)
2121
displayStats = false;
2222
if(displayStats) {
23-
console.log(stats.toString(options.stats))
23+
console.log(stats.toString(options.stats));
2424
}
2525
if(!options.noInfo && !options.quiet) {
2626
console.info("webpack: bundle is now VALID.");
2727
}
2828
} else {
2929
console.info("webpack: bundle is now INVALID.");
3030
}
31-
}
31+
};
3232

3333
// constructor for the middleware
3434
module.exports = function(compiler, options) {
@@ -58,7 +58,7 @@ module.exports = function(compiler, options) {
5858
compiler.plugin("done", function(stats) {
5959
// We are now on valid state
6060
state = true;
61-
webpackStats = stats
61+
webpackStats = stats;
6262

6363
// Do the stuff in nextTick, because bundle may be invalidated
6464
// if a change happened while compiling
@@ -93,7 +93,7 @@ module.exports = function(compiler, options) {
9393
options.reporter({
9494
state: false,
9595
options: options
96-
})
96+
});
9797

9898
// We are now in invalid state
9999
state = false;
@@ -147,7 +147,7 @@ module.exports = function(compiler, options) {
147147
}
148148

149149
function pathJoin(a, b) {
150-
return a == "/" ? "/" + b : (a || "") + "/" + b
150+
return a == "/" ? "/" + b : (a || "") + "/" + b;
151151
}
152152

153153
function getFilenameFromUrl(url) {
@@ -199,11 +199,11 @@ module.exports = function(compiler, options) {
199199
// The middleware function
200200
function webpackDevMiddleware(req, res, next) {
201201
function goNext() {
202-
if(!options.serverSideRender) return next()
202+
if(!options.serverSideRender) return next();
203203
ready(function() {
204-
res.locals.webpackStats = webpackStats
205-
next()
206-
}, req)
204+
res.locals.webpackStats = webpackStats;
205+
next();
206+
}, req);
207207
}
208208

209209
if(req.method !== 'GET') {
@@ -287,4 +287,4 @@ module.exports = function(compiler, options) {
287287
webpackDevMiddleware.fileSystem = fs;
288288

289289
return webpackDevMiddleware;
290-
}
290+
};

0 commit comments

Comments
 (0)