What version of Oxlint are you using?
1.58.0
What command did you run?
oxlint
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
I noticed that sometimes when my case statement extends multiple lines, I get an incorrect error from the eslint(no-fallthrough) rule.
This works fine:
switch (color) {
case Color.Red:
case Color.Blue:
case Color.Green:
break;
default:
break;
}
but this causes a lint error (sorry for the contrived example):
const A = {
B: {
Red: "A",
Green: "B",
SuperDuperLongEnumValueWhoseNameIsWayTooLongTooFitOnOneLineSoItStretchesOntoTwoLinesAndBreaksOxlint:
"C",
},
};
declare const color: keyof typeof A.B;
switch (color) {
case A.B.Red:
case A.B
.SuperDuperLongEnumValueWhoseNameIsWayTooLongTooFitOnOneLineSoItStretchesOntoTwoLinesAndBreaksOxlint:
case A.B.Green: // <-- lint error here: Expected a `break` statement before `case`
break;
default:
break;
}
What version of Oxlint are you using?
1.58.0
What command did you run?
oxlint
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?What happened?
I noticed that sometimes when my
casestatement extends multiple lines, I get an incorrect error from theeslint(no-fallthrough)rule.This works fine:
but this causes a lint error (sorry for the contrived example):