Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Prevent false positives with no-constant-condition (#15486)
Fixes #15467 by defining `isConstant` with `inBooleanPosition` set to `false` as meaning: > For both string and number, if coerced to that type, the value will be constant.
- Loading branch information
1 parent
564ecdb
commit 03ac8cf
Showing
2 changed files
with
37 additions
and
20 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