Enable no-this-before-super

In the constructor of derived classes, if this/super are used
before super() calls, it raises a reference error.

http://eslint.org/docs/rules/no-this-before-super

Change-Id: I7cd9f2e802dbc1b3e9e91ca708366cb2b461e7fb
This commit is contained in:
Vitaly Kramskikh 2016-05-12 18:23:18 +03:00
parent 5c164b6bea
commit 425d919b8a
1 changed files with 1 additions and 1 deletions

View File

@ -895,7 +895,7 @@ rules:
# disallow use of this/super before calling super() in constructors
# http://eslint.org/docs/rules/no-this-before-super
no-this-before-super: 0
no-this-before-super: 2
# disallow unnecessary constructor
# http://eslint.org/docs/rules/no-useless-constructor