What version of Oxlint are you using?
1.71.0
What command did you run?
oxlint -c
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
Oxlint reports no-useless-return on early return statements that are not useless — they prevent subsequent code in the same switch case from running.
Steps to reproduce
What version of Oxlint are you using?
1.71.0
What command did you run?
oxlint -c
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "rules": { "no-useless-return": "error" } }What happened?
Oxlint reports no-useless-return on early return statements that are not useless — they prevent subsequent code in the same switch case from running.
Steps to reproduce