import-js/eslint-plugin-import

'no-unresolved' always additionally causes false positive 'extensions'

Open

#2.153 aberto em 15 de jul. de 2021

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (1.540 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (4.946 stars)
Métricas de merge de PR
 (Mesclagem média 138d 22h) (3 fundiu PRs em 30d)

Description

This is more of a low-priority FYI, given that no-unresolved always gets fixed right away, so the issue is inconsequential.

image

I haven't specified import/extensions rule and thus the default "never" should be in effect.
That's how it behaves, except when there's an actual (legitimate) issue with import resolution.

From .eslintrc:

"parser": "@babel/eslint-parser",
"extends": "airbnb",
...
"import/no-named-as-default": 1,
"import/order": "off",
"import/prefer-default-export": "off",

From devDependencies:

"@babel/eslint-parser": "^7.14.7",
"eslint": "^7.30.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-import-resolver-webpack": "^0.13.1",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-react": "^7.24.0",

Guia do colaborador