Skip to content

Commit 88e736c

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Add no-dupe-class-members to RN ESLint fonfig
Summary: This should catch errors with people redefining component lifecycle methods or other class members. We have this for object properties already but must not have updated the config for classes. Reviewed By: helouree Differential Revision: D11540725 fbshipit-source-id: d56091170aecf31bbd50ef3c76fc3970ca45466d
1 parent 6534718 commit 88e736c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"no-constant-condition": 0, // disallow use of constant expressions in conditions
6666
"no-control-regex": 1, // disallow control characters in regular expressions
6767
"no-debugger": 1, // disallow use of debugger
68+
"no-dupe-class-members": 2, // Disallow duplicate name in class members
6869
"no-dupe-keys": 2, // disallow duplicate keys when creating object literals
6970
"no-empty": 0, // disallow empty statements
7071
"no-ex-assign": 1, // disallow assigning to the exception in a catch block

0 commit comments

Comments
 (0)