-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulegood first issueGood for newcomersGood for newcomershas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
Repro
{
"rules": {
"@typescript-eslint/unbound-method": "error"
}
}
// PLEASE IGNORE, BAD REPRO
// let obj = {};
// obj.fn = (function() {}).bind(obj);
class A {
foo(): void {
this.foo = undefined;
}
}
Expected Result
No error.
Actual Result
'unbound-method' complains about obj.fn
this.foo
.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
2.7.0 |
@typescript-eslint/parser |
2.7.0 |
TypeScript |
3.7.2 |
ESLint |
6.6.0 |
node |
12.12.0 |
npm |
6.11.3 |
FlorianWendelborn, lboecker and danvim
Metadata
Metadata
Assignees
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulegood first issueGood for newcomersGood for newcomershas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin