Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-plugin): [prefer-nullish-coalescing] add `ignorePrimitive…
…s` option (#6487) * issue-4906 - prefer-nullish-coalescing enhancment * remove comment * add doc * CR: sort keys * CR: import once * CR: remove unncessary "as const" * CR: Fix markdown lint rule * CR: Use binary OR to simplify loop * CR: More positive test cases - Literal types (true, 1, etc.) - Template literals (`hello${string}`) - Bigints (1n) - Combinations of the types (boolean | string | ...), etc. * CR: mixed * CR: remove implied line * CR: Move the note up * prettier fixz * Fix coverage, ts didn't know it has a default so it's not optional * CR1: Remove redundant check * CR2: Remove redundant check for the type-system * Add bigint option * markdown too * Fixed union test and JSON.stringify(ignorePrimitives) * flattening map * flattening map 2 * add examples to docs
- Loading branch information
Omri Luzon
committed
Jul 8, 2023
1 parent
b1a23a9
commit 6edaa04
Showing
3 changed files
with
525 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.