Skip to content

Commit 90977b0

Browse files
motiz88facebook-github-bot
authored andcommitted
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
1 parent 4159e20 commit 90977b0

File tree

1 file changed

+1
-0
lines changed
  • packages/eslint-config-react-native-community

1 file changed

+1
-0
lines changed

packages/eslint-config-react-native-community/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ module.exports = {
179179
'no-self-compare': 1, // disallow comparisons where both sides are exactly the same (off by default)
180180
'no-sequences': 1, // disallow use of comma operator
181181
'no-unused-expressions': 0, // disallow usage of expressions in statement position
182+
'no-useless-escape': 1, // disallow escapes that don't have any effect in literals
182183
'no-void': 1, // disallow use of void operator (off by default)
183184
'no-warning-comments': 0, // disallow usage of configurable warning terms in comments": 1, // e.g. TODO or FIXME (off by default)
184185
'no-with': 1, // disallow use of the with statement

0 commit comments

Comments
 (0)