Browse Source

Enable constructor-super

This rule checks usage of super() calls in class constructors.
Constructors of derived classes must call super().
Constructors of non derived classes must not call super().
If this is not observed, the javascript engine will raise
a runtime error.

http://eslint.org/docs/rules/constructor-super

Change-Id: Ic5fd761584770bdd2ae1a361b85ccb0a0167fce3
Vitaly Kramskikh 2 years ago
parent
commit
5fa93cef9e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

@@ -863,7 +863,7 @@ rules:
863 863
 
864 864
   # verify calls of super() in constructors
865 865
   # http://eslint.org/docs/rules/constructor-super
866
-  constructor-super: 0
866
+  constructor-super: 2
867 867
 
868 868
   # enforce the spacing around the * in generator functions
869 869
   # http://eslint.org/docs/rules/generator-star-spacing

Loading…
Cancel
Save