complexity/noUselessContinue
complexity · since 1.0.0
Safe autofixRecommended
biome.json
{
"linter": {
"rules": {
"complexity": {
"noUselessContinue": "error"
}
}
}
}loop: for (let i = 0; i < 5; i++) {
continue loop;
}while (i--) {
continue;
}while (1) {
continue;
}while (i) {
if (i > 5) {
continue;
}
console.log(i);
i--;
}
loop: while (1) {
forLoop: for (let i = 0; i < 5; i++) {
if (someCondition) {
continue loop;
}
}
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
complexity/noUselessContinue
complexity · since 1.0.0
{
"linter": {
"rules": {
"complexity": {
"noUselessContinue": "error"
}
}
}
}Disallow unnecessary escapes in string literals.
Disallow unnecessary String.raw function in template string literals without any escape sequence.
Disallow an unsafe combination of the sandbox attribute.
Disallow returning a value from a function with the return type 'void'