You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2021. It is now read-only.
The above code triggers the 'unnecessary fat arrow' linter. However without the fat arrow, this within the super run will refer to window instead of the superclass.
The suggestion is that the linter checks for the presence of super in the fat arrow function and if it's present, then the linter passes. If no reference is found to either this or super then the fat arrow is indeed unnecessary.
The above code triggers the 'unnecessary fat arrow' linter. However without the fat arrow,
thiswithin the superrunwill refer to window instead of the superclass.The suggestion is that the linter checks for the presence of super in the fat arrow function and if it's present, then the linter passes. If no reference is found to either
thisorsuperthen the fat arrow is indeed unnecessary.