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
exportclassNullDereferencedextendsError{constructor(readonlymessage: string='This value was promised to never be undefined.'){super(message);Object.setPrototypeOf(this,NullDereferenced.prototype);if('captureStackTrace'inError){// wotan-disable-line no-useless-predicateError.captureStackTrace(this,NullDereferenced);}}}
Actual behavior
The super() call causes an error.
Using expressions to cause side-effects not allowed. (no-expression-statement)
Expected bahavior
No error. There is no way around that.
Possible heuristic
If the offending node is a CallExpression, and the inner expression is of type SuperKeyword, then the error should not be raised.
The text was updated successfully, but these errors were encountered:
Yes, that seems reasonable to me and a PR could be accepted.
Btw, you may want to switch to eslint as tslint is being deprecated. See the new eslint-plugin-functional project which is a port of the rules in this repo to eslint. You should probably open the same issue over there too.
Offending code
Actual behavior
The
super()
call causes an error.Expected bahavior
No error. There is no way around that.
Possible heuristic
If the offending node is a
CallExpression
, and the inner expression is of typeSuperKeyword
, then the error should not be raised.The text was updated successfully, but these errors were encountered: