From 523115f6824dfa98184ba6c0f7cbffadca887e50 Mon Sep 17 00:00:00 2001 From: Ryan Sobol Date: Sat, 27 Aug 2016 11:40:31 -0700 Subject: [PATCH] Close #109 Replace no-negated-in-lhs with no-unsafe-negation --- CHANGELOG.md | 1 + rules/possible-errors.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9601f5c..d0cf156 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All changes to this project are documented in this file. This project adheres to ### Changed - Replace `no-native-reassign` with `no-global-assign` +- Replace `no-negated-in-lhs` with `no-unsafe-negation` ### Removed - Remove support for Node v5 diff --git a/rules/possible-errors.js b/rules/possible-errors.js index 077510d..ce13b2b 100755 --- a/rules/possible-errors.js +++ b/rules/possible-errors.js @@ -59,9 +59,6 @@ module.exports = { // Disallow irregular whitespace outside of strings and comments 'no-irregular-whitespace': 2, - // Disallow negation of the left operand of an in expression - 'no-negated-in-lhs': 2, - // Disallow the use of object properties of the global object (Math and JSON) // as functions 'no-obj-calls': 2, @@ -85,6 +82,9 @@ module.exports = { // Disallow control flow statements in finally blocks 'no-unsafe-finally': 2, + // Disallow negating the left operand of relational operators + 'no-unsafe-negation': 2, + // Disallow comparisons with the value NaN 'use-isnan': 2,