What version of Oxlint are you using?
1.64.0
What command did you run?
No response
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
What happened?
oxlint only detects Promise.reject/resolve wrapping at the top level of a .then() callback body. Returns nested inside conditionals are not flagged, unlike eslint-plugin-promise which uses full code-path analysis.
Demo can be found here.
What version of Oxlint are you using?
1.64.0
What command did you run?
No response
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?{ "plugins": ["promise"], "rules": { "promise/no-return-wrap": "error" } }What happened?
oxlint only detects Promise.reject/resolve wrapping at the top level of a
.then()callback body. Returns nested inside conditionals are not flagged, unlike eslint-plugin-promise which uses full code-path analysis.Demo can be found here.