[consistent-type-definitions] invalid fixer for declare type #4333
Labels
bug
Something isn't working
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Fixer incorrectly changes declare keyword to interface
issue is present for
type
andinterface
options and its related tosourceCode.getFirstToken(node);
Repro
Playground
Code
Eslint config
Expected Result
Actual Result
Versions
@typescript-eslint/eslint-plugin
5.8.0
@typescript-eslint/parser
5.8.0
TypeScript
4.5.2
ESLint
8.1.0
Env
web
The text was updated successfully, but these errors were encountered: