What version of Oxlint are you using?
0.15.8
What command did you run?
npx oxlint
What does your .oxlint.json config file look like?
{
"rules": {
"no-lone-blocks": "error"
}
}
What happened?
Oxlint errors on if, else, or else if blocks containing only a comment. Eslint does not error on these cases.
Example case
if (foo) {
// do nothing
}
else if (bar) {
// do nothing again
}
else {
console.log('not foo');
}
if (baz) {
console.log(baz);
}
else {
// do nothing
}
What version of Oxlint are you using?
0.15.8
What command did you run?
npx oxlint
What does your
.oxlint.jsonconfig file look like?{ "rules": { "no-lone-blocks": "error" } }What happened?
Oxlint errors on
if,else, orelse ifblocks containing only a comment. Eslint does not error on these cases.Example case