Skip to content

Commit 683cc5b

Browse files
Fixes linter issues
1 parent 4e82eb3 commit 683cc5b

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

webpack/dev-server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ app.use('/fixtures', express.static(`${BUILD_SRC_DIR}/tests/fixtures`));
2222
app.use(['/static', '/*'], express.static(BUILD_PUBLIC_DIR));
2323

2424
app.listen(3000, 'localhost', function() {
25-
process.send && process.send('express ready');
25+
if (process.send) {
26+
process.send('express ready');
27+
}
2628

2729
console.log('http://localhost:3000');
2830
console.log('http://localhost:3000/webpack-dev-server');

webpack/source-map-fix.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ module.exports = function (input, inputMap) {
77
const callback = this.async();
88
let err = null;
99

10-
this.cacheable && this.cacheable();
10+
if (this.cacheable) {
11+
this.cacheable();
12+
}
1113

1214
if (typeof (inputMap) === 'string') {
1315
inputMap = JSON.parse(inputMap);

webpack/stats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export default {
88
chunkModules: true,
99
errorDetails: true,
1010
reasons: false,
11-
};
11+
};

0 commit comments

Comments
 (0)