Commit b552509
chore: fail lint on warnings
@eslint-react/eslint-plugin's recommended-typescript config sets 38 rules
at warn severity, where eslint-plugin-react's flat.recommended used error.
Several of those catch real defects rather than style, among them
web-api-no-leaked-timeout, web-api-no-leaked-event-listener,
set-state-in-effect and purity. ESLint's reportUnusedDisableDirectives
also defaults to warn.
Since `eslint .` exits 0 on warnings, all of the above could regress
without failing `npm test`. Add --max-warnings=0 to gate them.
format no longer shells out to the lint script, so that prettier --write
still runs when eslint --fix leaves an unfixable warning behind rather
than being short-circuited by the new gate.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 91511dc commit b552509
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments