summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Kramskikh <vkramskikh@mirantis.com>2016-05-11 20:47:02 +0300
committerVitaly Kramskikh <vkramskikh@mirantis.com>2016-05-11 20:47:02 +0300
commit5fa93cef9e7020c62bb12d2bd1cba20e1350d468 (patch)
tree1750ac8163247db3f20318d75b55403ad033f2a3
parent5c164b6bea214ea3e776327e86aeff7d6b8a1935 (diff)
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
Notes
Notes (review): Code-Review+1: Michael Krotscheck <krotscheck@gmail.com> Code-Review+1: Julia Aranovich <jkirnosova@mirantis.com> Code-Review+1: Kate Pimenova <kpimenova@mirantis.com> Code-Review+2: Timur Sufiev <tsufiev@mirantis.com> Code-Review+2: Beth Elwell <e.r.elwell@gmail.com> Workflow+1: Beth Elwell <e.r.elwell@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 02 Jun 2016 16:08:29 +0000 Reviewed-on: https://review.openstack.org/315183 Project: openstack/eslint-config-openstack Branch: refs/heads/master
-rw-r--r--.eslintrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.eslintrc b/.eslintrc
index 2c821ce..2f21ecb 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -863,7 +863,7 @@ rules:
863 863
864 # verify calls of super() in constructors 864 # verify calls of super() in constructors
865 # http://eslint.org/docs/rules/constructor-super 865 # http://eslint.org/docs/rules/constructor-super
866 constructor-super: 0 866 constructor-super: 2
867 867
868 # enforce the spacing around the * in generator functions 868 # enforce the spacing around the * in generator functions
869 # http://eslint.org/docs/rules/generator-star-spacing 869 # http://eslint.org/docs/rules/generator-star-spacing