oxc-project
oxc
BlogDocsChangelog

feat(linter): implement `no-promise-executor-return` rule

#16779Merged
Comparing
tt-a1i:feat/linter-no-promise-executor-return
(
bd642bf
) with
main
(
fbcb49a
)
CodSpeed Performance Gauge
0%
Untouched
4
Skipped
41

Benchmarks

Skipped (41)

Passed

linter[RadixUIAdoptionSection.jsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
720.3 µs719.4 µs
linter[binder.ts]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
47.4 ms47.4 ms
linter[cal.com.tsx]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
469.7 ms470.4 ms
linter[react.development.js]
tasks/benchmark/benches/linter.rs::linter::bench_linter
CodSpeed Performance Gauge
0%
19.1 ms19.1 ms

Commits

Click on a commit to change the comparison range
Base
main
fbcb49a
-0.1%
feat(linter): implement `no-promise-executor-return` rule Disallow returning values from Promise executor functions. The return value of the Promise executor is ignored and returning a value is likely a mistake. The rule detects: - Implicit returns from arrow function expression bodies - Explicit return statements with values - Returns inside control flow (if, switch, loops, try-catch, etc.) Configuration: - `allowVoid`: Allow `return void expr` pattern (default: false) Closes #25083
70f9e88
2 days ago
by tt-a1i
+0.04%
fix: update all remaining rule counts in snapshots
203a483
2 days ago
by tt-a1i
-0.09%
refactor(linter): change no-promise-executor-return to pedantic category
d38033a
2 days ago
by tt-a1i
0%
fix: remove no-promise-executor-return from language server snapshot
81248e7
2 days ago
by tt-a1i
+0.07%
fix: update rule counts in snapshots (adding new rule increases total count)
a776497
2 days ago
by tt-a1i
-0.05%
fix: restore original snapshots (pedantic rules don't affect enabled rule count)
bd642bf
2 days ago
by tt-a1i
© 2025 CodSpeed Technology
Home Terms Privacy Docs