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
This commit is contained in:
Vitaly Kramskikh 2016-05-11 20:47:02 +03:00
parent 5c164b6bea
commit 5fa93cef9e
1 changed files with 1 additions and 1 deletions

View File

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