-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/prefer-function-type": ["error"]
}
}
interface X {
/** @deprecated */
(): void;
}
Expected Result
type X =
/** @deprecated */
() => void;
Actual Result
type X = () => void;
Additional Info
Maybe it'd be nice to also have an option to prevent transform when a doc comment is present.
I didn't check if regular comments get eaten too.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.14.2 |
@typescript-eslint/parser |
4.14.2 |
TypeScript |
4.1.3 |
ESLint |
7.19.0 |
node |
14.15.4 |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin