Browse Source

Enable no-dupe-class-members

If there are declarations of the same name in class members,
the last declaration overwrites other declarations silently.
It can cause unexpected behaviors.

http://eslint.org/docs/rules/no-dupe-class-members

Change-Id: I0279dd2f818ea893f26e6230ac7a7648dbae5520
Vitaly Kramskikh 2 years ago
parent
commit
596fbf4c6f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

@@ -883,7 +883,7 @@ rules:
883 883
 
884 884
   # disallow duplicate name in class members
885 885
   # http://eslint.org/docs/rules/no-dupe-class-members
886
-  no-dupe-class-members: 0
886
+  no-dupe-class-members: 2
887 887
 
888 888
   # disallow use of the new operator with the Symbol object
889 889
   # http://eslint.org/docs/rules/no-new-symbol

Loading…
Cancel
Save