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:
parent
5c164b6bea
commit
5fa93cef9e
|
@ -863,7 +863,7 @@ rules:
|
||||||
|
|
||||||
# verify calls of super() in constructors
|
# verify calls of super() in constructors
|
||||||
# http://eslint.org/docs/rules/constructor-super
|
# http://eslint.org/docs/rules/constructor-super
|
||||||
constructor-super: 0
|
constructor-super: 2
|
||||||
|
|
||||||
# enforce the spacing around the * in generator functions
|
# enforce the spacing around the * in generator functions
|
||||||
# http://eslint.org/docs/rules/generator-star-spacing
|
# http://eslint.org/docs/rules/generator-star-spacing
|
||||||
|
|
Loading…
Reference in New Issue