Skip to content

Commit 9c67e74

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Move Lint Rules to React Native
Reviewed By: sahrens Differential Revision: D6671226 fbshipit-source-id: 80d92569c72c766103d096b251ef5729dafb4592
1 parent 183c316 commit 9c67e74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,15 @@
188188
"no-multi-spaces": 0,
189189
"brace-style": 0, // enforce one true brace style (off by default)
190190
"camelcase": 0, // require camel case names
191-
"consistent-this": [1, "self"], // enforces consistent naming when capturing the current execution context (off by default)
191+
"consistent-this": 1, // enforces consistent naming when capturing the current execution context (off by default)
192192
"eol-last": 1, // enforce newline at the end of file, with no multiple empty lines
193193
"func-names": 0, // require function expressions to have a name (off by default)
194194
"func-style": 0, // enforces use of function declarations or expressions (off by default)
195195
"new-cap": 0, // require a capital letter for constructors
196196
"new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments
197197
"no-nested-ternary": 0, // disallow nested ternary expressions (off by default)
198198
"no-array-constructor": 1, // disallow use of the Array constructor
199+
'no-empty-character-class': 1, // disallow the use of empty character classes in regular expressions
199200
"no-lonely-if": 0, // disallow if as the only statement in an else block (off by default)
200201
"no-new-object": 1, // disallow use of the Object constructor
201202
"no-spaced-func": 1, // disallow space between function identifier and application

0 commit comments

Comments
 (0)