From 90977b0e00acc6b3263502017c27094392e89478 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Fri, 11 Oct 2019 05:53:53 -0700 Subject: [PATCH] Enable no-useless-escape lint rule Summary: See https://eslint.org/docs/rules/no-useless-escape. Useless escapes can reflect a mismatch between the intended and actual effect of a backslash in a literal. Reviewed By: rubennorte Differential Revision: D17876784 fbshipit-source-id: 7641b1f2227b92e1e91469adc0d0d990a64109cf --- packages/eslint-config-react-native-community/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/eslint-config-react-native-community/index.js b/packages/eslint-config-react-native-community/index.js index 49431eef5767b5..5a88f6d9804b1a 100644 --- a/packages/eslint-config-react-native-community/index.js +++ b/packages/eslint-config-react-native-community/index.js @@ -179,6 +179,7 @@ module.exports = { 'no-self-compare': 1, // disallow comparisons where both sides are exactly the same (off by default) 'no-sequences': 1, // disallow use of comma operator 'no-unused-expressions': 0, // disallow usage of expressions in statement position + 'no-useless-escape': 1, // disallow escapes that don't have any effect in literals 'no-void': 1, // disallow use of void operator (off by default) 'no-warning-comments': 0, // disallow usage of configurable warning terms in comments": 1, // e.g. TODO or FIXME (off by default) 'no-with': 1, // disallow use of the with statement