Commits
Click on a commit to change the comparison rangefeat(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 fix: update all remaining rule counts in snapshots refactor(linter): change no-promise-executor-return to pedantic category fix: remove no-promise-executor-return from language server snapshot fix: update rule counts in snapshots (adding new rule increases total count) fix: restore original snapshots (pedantic rules don't affect enabled rule count)