Commit d5be037
committed
docs(linter/typescript/switch-exhaustiveness-check): clarify default case comment pattern (#26100)
## Summary
- clarify that `defaultCaseCommentPattern` recognizes a trailing comment in place of an omitted `default` clause
- document the required location, absence of a live `default`, and the `considerDefaultExhaustiveForUnions` requirement for union switches
- regenerate the JSON schema and TypeScript configuration types
Fixes #260871 parent 60b945d commit d5be037
3 files changed
Lines changed: 12 additions & 8 deletions
File tree
- apps/oxlint/src-js/package
- crates/oxc_linter/src/rules/typescript
- npm/oxlint
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6212 | 6212 | | |
6213 | 6213 | | |
6214 | 6214 | | |
6215 | | - | |
6216 | | - | |
6217 | | - | |
| 6215 | + | |
| 6216 | + | |
| 6217 | + | |
| 6218 | + | |
| 6219 | + | |
6218 | 6220 | | |
6219 | 6221 | | |
6220 | 6222 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19247 | 19247 | | |
19248 | 19248 | | |
19249 | 19249 | | |
19250 | | - | |
| 19250 | + | |
19251 | 19251 | | |
19252 | | - | |
| 19252 | + | |
19253 | 19253 | | |
19254 | 19254 | | |
19255 | 19255 | | |
| |||
0 commit comments