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
There seems to be cases where eslint rule "no-useless-constructor" will give false positives when used with typescript
e.g.
constructor(private readonly x: number) {}
That constructor is not really useless since it will assign the given parameter to this.x, so maybe consider dropping that rule for now for typescript?
The text was updated successfully, but these errors were encountered:
Sorry just realized that the rule you linked is the ESLint rule right (sorry on phone). May be worth posting in typescript-eslint anyways as they may need their own version of the rule.
v3.0.0
There seems to be cases where eslint rule "no-useless-constructor" will give false positives when used with typescript
e.g.
That constructor is not really useless since it will assign the given parameter to this.x, so maybe consider dropping that rule for now for typescript?
The text was updated successfully, but these errors were encountered: