Skip to content

Commit

Permalink
Docs: clarify that no-unsafe-negation is in eslint:recommended (#8371)
Browse files Browse the repository at this point in the history
no-unsafe-negation was added to eslint:recommended in #7467, but this is not reflected in the docs. This commit updates the docs to indicate that no-unsafe-negation is in eslint:recommended.

Similarly, no-negated-in-lhs and no-native-reassign have not been in eslint:recommended since #7467, so this commit updates the docs to indicate that.

(refs #8370)
  • Loading branch information
not-an-aardvark committed Mar 31, 2017
1 parent 02f0d27 commit f88375f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rules/no-native-reassign.js
Expand Up @@ -15,7 +15,7 @@ module.exports = {
docs: {
description: "disallow assignments to native objects or read-only global variables",
category: "Best Practices",
recommended: true,
recommended: false,
replacedBy: ["no-global-assign"]
},

Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-negated-in-lhs.js
Expand Up @@ -15,7 +15,7 @@ module.exports = {
docs: {
description: "disallow negating the left operand in `in` expressions",
category: "Possible Errors",
recommended: true,
recommended: false,
replacedBy: ["no-unsafe-negation"]
},
deprecated: true,
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-unsafe-negation.js
Expand Up @@ -44,7 +44,7 @@ module.exports = {
docs: {
description: "disallow negating the left operand of relational operators",
category: "Possible Errors",
recommended: false
recommended: true
},
schema: [],
fixable: "code"
Expand Down

0 comments on commit f88375f

Please sign in to comment.