-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
I've just upgraded to eslint-plugin-import@2.18.2
and eslint-import-resolver-typescript@2.0.0
and started to get import/order
errors:
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:
The import/order
rule history doesn't seem to have anything suspicious. Could the new version of the resolver be causing this?
andrewjtorres, Praveena0989, tomodian and gushuro