Skip to content

Commit 637a26d

Browse files
authored
fix(loader-runner): add missing break statements in switch cases (#11794)
* fix(loader-runner): add missing break statements in switch cases * fix * fix
1 parent 1471a3d commit 637a26d

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

biome.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"noDynamicNamespaceImportAccess": "off"
4444
},
4545
"suspicious": {
46-
"noFallthroughSwitchClause": "off",
4746
"noConfusingVoidType": "off",
4847
"noPrototypeBuiltins": "off",
4948
"noAssignInExpressions": "off",

packages/rspack/src/loader-runner/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,7 @@ export async function runLoaders(
877877
case RequestType.GetLogger: {
878878
const [type, name, arg] = args;
879879
(loaderContext.getLogger(name) as any)[type](...arg);
880+
break;
880881
}
881882
case RequestType.EmitError: {
882883
const workerError = args[0];

packages/rspack/src/loader-runner/worker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ async function loaderImpl(
461461
break;
462462
}
463463
}
464+
break;
464465
}
465466
case JsLoaderState.Normal: {
466467
while (loaderContext.loaderIndex >= 0) {

packages/rspack/src/logging/createConsoleLogger.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ const createConsoleLogger = ({
123123
if (!debug) return;
124124
console.trace();
125125
break;
126+
// biome-ignore lint/suspicious/noFallthroughSwitchClause: This case is falling through to the next case.
126127
case LogType.groupCollapsed:
127128
if (!debug && loglevel > LogLevel.log) return;
128129
if (!debug && loglevel > LogLevel.verbose) {

0 commit comments

Comments
 (0)