Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: treat all literals like boolean literal in no-constant-condit…
…ion (#13245) * Fix: treet all literals like boolean literal in no-constant-condition * fix unexpected short circuit * handle bigin/regex on unsupported runtime * fix bigint tests * simplify literal truthiness * handle regex literal in unsupported environments * Update lib/rules/no-constant-condition.js Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
- Loading branch information
1 parent
289aa6f
commit 603de04
Showing
2 changed files
with
77 additions
and
23 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