Browse Source

Enable no-this-before-super

In the constructor of derived classes, if this/super are used
before super() calls, it raises a reference error.

http://eslint.org/docs/rules/no-this-before-super

Change-Id: I7cd9f2e802dbc1b3e9e91ca708366cb2b461e7fb
Vitaly Kramskikh 2 years ago
parent
commit
425d919b8a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

@@ -895,7 +895,7 @@ rules:
895 895
 
896 896
   # disallow use of this/super before calling super() in constructors
897 897
   # http://eslint.org/docs/rules/no-this-before-super
898
-  no-this-before-super: 0
898
+  no-this-before-super: 2
899 899
 
900 900
   # disallow unnecessary constructor
901 901
   # http://eslint.org/docs/rules/no-useless-constructor

Loading…
Cancel
Save