summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-eq-null.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-eq-null.js')
-rw-r--r--tools/eslint/lib/rules/no-eq-null.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eslint/lib/rules/no-eq-null.js b/tools/eslint/lib/rules/no-eq-null.js
index 57e4a3f4e4..62215d05f1 100644
--- a/tools/eslint/lib/rules/no-eq-null.js
+++ b/tools/eslint/lib/rules/no-eq-null.js
@@ -21,11 +21,11 @@ module.exports = {
schema: []
},
- create: function(context) {
+ create(context) {
return {
- BinaryExpression: function(node) {
+ BinaryExpression(node) {
const badOperator = node.operator === "==" || node.operator === "!=";
if (node.right.type === "Literal" && node.right.raw === "null" && badOperator ||