eslint-plugin-import
eslint-plugin-import copied to clipboard
ESLint plugin with rules that help validate proper imports.
With the recent official support of ESLint TypeScript config ([ref](https://eslint.org/docs/latest/use/configure/configuration-files#typescript-configuration-files)), when trying to setup the [example config in the README file](https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#config---flat-with-config-in-typescript-eslint), I get the following issue: `Unable to resolve path...
Hellow everyone i want group how write in the documentation https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md#groups-array but i have problem newlines-between work between all group groups: [['external','builtin'], ['internal', 'parent', 'sibling', 'index']], **Example:** ``` import {...
Some of the example paths don't match the file trees given. This also cleans up some of the file tree formatting and clarifies the wording to hopefully avoid confusion.
With the recent official support of ESLint TypeScript config ([ref](https://eslint.org/docs/latest/use/configure/configuration-files#typescript-configuration-files)), when trying to setup the [example config in the README file](https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#config---flat-with-config-in-typescript-eslint), I get the following typings issue: `'importPlugin.flatConfigs' is possibly...
Updating schema wrt https://github.com/import-js/eslint-plugin-import/pull/3127#discussion_r1926534364 EDIT: depends on #3129 for its added tests
Possible duplicate of #3113. I'm using using eslint-plugin-import v2.31.0 and eslint v8.57.1. I've got a large work project that I'm attempting to migrate from a legacy-style config to a flat...
Hi Friends, I am trying to use the rule `'import/no-unused-modules': [2, { unusedExports: true }]` which, from research, requires the following eslintrc config: ``` settings: { 'import/parsers': { '@typescript-eslint/parser': ['.ts',...
Hiya, like many projects my project is upgrading to the new flat eslint config format. Unfortunately the `eslint.config.js` doesn't type check properly currently: ``` Module '"/home/darius/yomitan/node_modules/eslint-plugin-import/lib/index"' has no default export.ts(1192)...
It looks like the docs for the `ignoreUnusedTypeExports` option of the rule `no-unused-modules` are wrong: > `ignoreUnusedTypeExports`: if `true`, TypeScript type exports without any static usage within other modules are...
Fixes #3145