Skip to content

Commit

Permalink
Breaking: update eslint:recommended for 4.0.0 (fixes #8236) (#8372)
Browse files Browse the repository at this point in the history
This adds no-useless-escape, no-compare-neg-zero, and array-callback-return to eslint:recommended.
  • Loading branch information
not-an-aardvark authored and ilyavolodin committed Apr 3, 2017
1 parent b0c63f0 commit 9a9d916
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions conf/eslint-recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
/* eslint-enable sort-keys */
"accessor-pairs": "off",
"array-bracket-spacing": "off",
"array-callback-return": "off",
"array-callback-return": "error",
"arrow-body-style": "off",
"arrow-parens": "off",
"arrow-spacing": "off",
Expand Down Expand Up @@ -83,7 +83,7 @@ module.exports = {
"no-case-declarations": "error",
"no-catch-shadow": "off",
"no-class-assign": "error",
"no-compare-neg-zero": "off",
"no-compare-neg-zero": "error",
"no-cond-assign": "error",
"no-confusing-arrow": "off",
"no-console": "error",
Expand Down Expand Up @@ -201,7 +201,7 @@ module.exports = {
"no-useless-computed-key": "off",
"no-useless-concat": "off",
"no-useless-constructor": "off",
"no-useless-escape": "off",
"no-useless-escape": "error",
"no-useless-rename": "off",
"no-useless-return": "off",
"no-var": "off",
Expand All @@ -211,7 +211,7 @@ module.exports = {
"no-with": "off",
"nonblock-statement-body-position": "off",
"object-curly-newline": "off",
"object-curly-spacing": ["off", "never"],
"object-curly-spacing": "off",
"object-property-newline": "off",
"object-shorthand": "off",
"one-var": "off",
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/array-callback-return.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ module.exports = {
docs: {
description: "enforce `return` statements in callbacks of array methods",
category: "Best Practices",
recommended: false
recommended: true
},

schema: []
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-compare-neg-zero.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
docs: {
description: "disallow comparing against -0",
category: "Possible Errors",
recommended: false
recommended: true
},
fixable: null,
schema: []
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/no-useless-escape.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = {
docs: {
description: "disallow unnecessary escape characters",
category: "Best Practices",
recommended: false
recommended: true
},

schema: []
Expand Down

0 comments on commit 9a9d916

Please sign in to comment.