From 5fa93cef9e7020c62bb12d2bd1cba20e1350d468 Mon Sep 17 00:00:00 2001 From: Vitaly Kramskikh Date: Wed, 11 May 2016 20:47:02 +0300 Subject: [PATCH] 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 --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 2c821ce..2f21ecb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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