Skip to content

Commit 1102e60

Browse files
faceyspaceysokra
authored andcommitted
fix($lint): fix linting errors
1 parent 4636e5a commit 1102e60

4 files changed

Lines changed: 5130 additions & 4 deletions

File tree

lib/ContextModule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ContextModule extends Module {
140140
this.addBlock(block);
141141
}
142142

143-
} else if(this.async === 'weak-context') {
143+
} else if(this.async === "weak-context") {
144144

145145
// store the dependences in a different key than `this.dependences`
146146
// to prevent them from being bundled in the parent
@@ -329,7 +329,7 @@ webpackEmptyAsyncContext.id = ${JSON.stringify(id)};`;
329329
}
330330

331331
getSourceString(asyncMode, outputOptions, requestShortener) {
332-
if(asyncMode === 'weak-context') {
332+
if(asyncMode === "weak-context") {
333333
return this.getSyncSource(this.weakDependencies, this.id);
334334
}
335335
if(asyncMode === "lazy") {

lib/dependencies/RequireContextDependency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class RequireContextDependency extends ContextDependency {
1111
super(request, recursive, regExp);
1212
this.range = range;
1313

14-
if (weak) {
15-
this.async = 'weak-context';
14+
if(weak) {
15+
this.async = "weak-context";
1616
this.chunkName = chunkName;
1717
}
1818
}

lib/dependencies/RequireContextDependencyParserPlugin.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ module.exports = class RequireContextDependencyParserPlugin {
2020
if(!chunkNameExpr.isString()) return;
2121
chunkName = chunkNameExpr.string;
2222
}
23+
// falls through
2324
case 4:
2425
{
2526
const weakExpr = parser.evaluateExpression(expr.arguments[3]);
2627
if(!weakExpr.isBoolean()) return;
2728
weak = weakExpr.bool;
2829
}
30+
// falls through
2931
case 3:
3032
{
3133
const regExpExpr = parser.evaluateExpression(expr.arguments[2]);

0 commit comments

Comments
 (0)