-
-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(linter): Add missing fail cases in eslint/no-self-compare (#9693)
Handles parentheses wrapping the LHS and RHS of the binary operation so that the following missing test cases pass: ```js x > (x) (x) == x (x) >= ((x)) ``` Eslint playground for these fail cases above can be found [here](https://eslint.org/play/#eyJ0ZXh0IjoiLyplc2xpbnQgbm8tc2VsZi1jb21wYXJlOiBcImVycm9yXCIqL1xuXG5pZiAoeCA+ICh4KSkge31cblxuaWYgKCh4KSA9PSB4KSB7fVxuXG5pZiAoKHgpID49ICgoeCkpKSB7fSIsIm9wdGlvbnMiOnsicnVsZXMiOnt9LCJsYW5ndWFnZU9wdGlvbnMiOnsicGFyc2VyT3B0aW9ucyI6eyJlY21hRmVhdHVyZXMiOnt9fX19fQ==).
- Loading branch information
1 parent
835984f
commit 2810e5b
Showing
2 changed files
with
29 additions
and
1 deletion.
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