Skip to content
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

[@typescript-eslint/no-empty-interface] Auto-fixer deletes generic type info #1864

Labels
bug Something isn't working good first issue Good for newcomers has pr there is a PR raised to close this package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@astorije
Copy link
Contributor

astorije commented Apr 7, 2020

Apologies if this is a duplicate. I went through existing issues and did not find this recorded.

Repro

Using the recommended presets:

export interface Foo<T> extends Bar<T> {}

Expected Result

export type Foo<T> = Bar<T>

Actual Result

export type Foo = Bar<T>

Versions

package version
@typescript-eslint/eslint-plugin 2.27.0
@typescript-eslint/parser 2.27.0
TypeScript 3.8.3
ESLint 6.8.0
node 12.14.0
yarn 1.22.4
@astorije astorije added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Apr 7, 2020
@bradzacher bradzacher added bug Something isn't working good first issue Good for newcomers and removed triage Waiting for maintainers to take a look labels Apr 7, 2020
@bradzacher bradzacher added the has pr there is a PR raised to close this label Apr 8, 2020
bradzacher pushed a commit that referenced this issue Apr 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers has pr there is a PR raised to close this package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
2 participants