Skip to content

Commit

Permalink
docs: fix typo in switch-exhaustiveness-check (#8768)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Mar 25, 2024
1 parent e408b93 commit 532ae8b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -34,7 +34,7 @@ If your project has many intentionally redundant `default` cases, you may want t

### `requireDefaultForNonUnion`

Defaults to false. It set to true, this rule will also report when a `switch` statement switches over a non-union type (like a `number` or `string`, for example) and that `switch` statement does not have a `default` case. Thus, by setting this option to true, the rule becomes stricter.
Defaults to false. If set to true, this rule will also report when a `switch` statement switches over a non-union type (like a `number` or `string`, for example) and that `switch` statement does not have a `default` case. Thus, by setting this option to true, the rule becomes stricter.

This is generally desirable so that `number` and `string` switches will be subject to the same exhaustive checks that your other switches are.

Expand Down

0 comments on commit 532ae8b

Please sign in to comment.