Skip to content

Adopt ESLint core sort-imports rule into import/order #2521

Open
@JounQin

Description

@JounQin

The core eslint rule will support most TS usecases, but it won't support "import equals" and it won't allow different treatment of type/value imports.

That being said - there are so many different sorting rules and plugins honestly I wouldn't want to add an extension rule to ts-eslint.

There are better alternatives like import/order or simple-import-sort/imports for example.

We already made this mistake with the no-duplicate-imports rule (import/no-duplicates is a much better version, and we'll be deleting our version in the next major).

Originally posted by @bradzacher in #2520 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions