Skip to content

TypeScript import/order regression #1525

Closed
@joaovieira

Description

@joaovieira

I've just upgraded to [email protected] and [email protected] and started to get import/order errors:

Screen Shot 2019-10-29 at 17 28 05

Any module defined in @types/* (e.g. @types/express in this case) is seen as "internal", while modules with their own types (e.g. http-status-codes) are seen as "external". I've tried with other modules as well.

Changing the default order to:

    'import/order': [
      'error',
      {
        groups: ['internal', 'external'],
      },
    ],

Gets rid of the error.

Can't understand the root cause though, but here's some logging from the resolver if it helps:
Screen Shot 2019-10-29 at 22 09 36

The import/order rule history doesn't seem to have anything suspicious. Could the new version of the resolver be causing this?

Re: import-js/eslint-import-resolver-typescript#33

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