-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document decode
as function instead of method, to silence ESLint.
#430
Comments
@patroza could you please expand on that? What exactly means? |
@gcanti hi, sure. in
|
Isn't it a breaking change? |
I don't believe so. Methods are more restrictive in this sense, and Functions less so. |
Could you please send a PR (or show a snippet) so we can reason about the actual changes? |
Sure thing; #432 |
Technically, yes: before the change both Practically, no probably (unless someone is doing weird things with prototypes). |
Running into this same issue. Would be great if we could get it resolved 🙂 |
🚀 Feature request
Current Behavior
Accessing
.decode
of a type by passing it, causes lint warning:warning Avoid referencing unbound methods which may cause unintentional scoping of
this@typescript-eslint/unbound-method
However the function is specifically bound:
this.decode = this.decode.bind(this);
Desired Behavior
Passing
.decode
should not cause a warningSuggested Solution
Document
decode
on the type as function instead of method.Who does this impact? Who is this for?
Typescript users with recommended lint rules.
Describe
Your environment
The text was updated successfully, but these errors were encountered: