eslint-plugin-import
eslint-plugin-import copied to clipboard
ESLint plugin with rules that help validate proper imports.
Node version: 18.19.1 npm version: 9.6.6 Local ESLint version: v8.57.0 Global ESLint version: v8.57.0 Operating System: Windows 10.0.22631 Build 22631 and Ubuntu 22.04.4 (LTS) .eslintrc.cjs ``` module.exports = { root:...
Closes: #1041
I would like to be able to have a specific `pathGroup` that doesn't force a newline. My objective would be to have the imports ordered in the following manner (with...
## Feature request: Allow wildcards in the import/core-modules settings ```json "settings": { "import/core-modules": [ "@my-monorepo-namespace/*", ] } ``` ... so that ``` "import/no-extraneous-dependencies": ["error", {"devDependencies": true}] ``` ...does not throw...
**Config:** ```typescript 'import/no-duplicates': ['error', { 'prefer-inline': true }] ``` **Case 1:** input ```typescript import type { TypeOne, TypeTwo } from './types'; import type { TypeThree, TypeFour } from './types'; ```...
`export import X = Y` seems not being recognized and may trigger `import/namespace` false-positives
Reproduction repo: https://github.com/chenxinyanc/eslint-import-uuid-test Reproduction code bar.ts ```ts export const test = 123; ``` buzz.ts ```ts import * as Bar from "./bar"; export import barTest = Bar.test; ``` index.ts ```ts import...
[import/no-duplicates] Autofix merges imports incorrectly - single index.d.ts but multiple modules
Working on a Svelte project. For a majority of their packages, they have a single index.d.ts that is used but the d.ts file uses modules for namespacing. Subset of the...
while this issue exist https://github.com/import-js/eslint-plugin-import/issues/2866, this fix helps to prevent eslint from crashing.
related: https://github.com/import-js/eslint-plugin-import/issues/1390 https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#importcore-modules The docs definitely imply that all you need for `import/core-modules` is a list of modules to import. But it should be ``` import/core-modules: [2, electron ] ```...
Hello! Thank you for this great library! However, I can't really figure out how to configure it in ESM TypeScript React project. I would like the ESLint to report (and...