We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-constant-binary-expression
1 parent d8f9a86 commit fa10d60Copy full SHA for fa10d60
test/no-constant-binary-expression.js
@@ -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