Skip to content

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

@astorije

Description

@astorije

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy