Skip to content

Commit fa10d60

Browse files
committed
chore: Add tests for no-constant-binary-expression
1 parent d8f9a86 commit fa10d60

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: test/no-constant-binary-expression.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*eslint-disable no-undef,no-unused-vars*/
2+
3+
// Incorrect
4+
const value1 = !foo == null; // eslint-disable-line no-constant-binary-expression
5+
6+
// Correct
7+
const value2 = !(foo == null);

0 commit comments

Comments
 (0)