Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
class Base1 {
public someMethod = (): void => { }
}
class Extended1 extends Base1 {
// correctly doesn't report
public static someMethod = async (): Promise<void> => { }
}
class Base2 {
public someMethod = (): void => { }
}
class Extended2 extends Base2 {
// reports but shouldn't
public static accessor someMethod = async (): Promise<void> => { }
}
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
rules: {
"@typescript-eslint/no-misused-promises": "error",
},
};
tsconfig
Expected Result
I expected the rule not to report this, similar to how it treats standard static
properties.
Actual Result
The rule reported the static
accessor
property, which I think is a false-positive.
Additional Info
Related: #10763 (comment).