Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Before You File a Documentation Request Please Confirm You Have Done The Following...
- I have looked for existingopen or closed documentation requests that match my proposal.
- I haveread the FAQ and my problem is not listed.
Suggested Changes
The code examples
- don't use our standard tabs approach to displaying incorrect vs correct code
- Repeat the same snippet over and over unnecessarily (the intention was probably to show how the fixer works, but it just isn't great how it's done.)
constfoo:any='bar';foo??'a string';foo??'a string';foo??'a string';foo??'a string';constfoo:string|undefined='bar';foo??'a string';foo??'a string';constfoo:string|null='bar';foo??'a string';foo??'a string';
Let's use the tabs and streamline the examples a bit. Also let's remove the duplicate identifiers so that the code is valid TS as written.
Affected URL(s)
https://typescript-eslint.io/rules/prefer-nullish-coalescing/
Additional Info
No response