{"_id":"eslint-import-utils","_rev":"3-b9abc3f8c2bf6a8e764c86450a65c7b7","name":"eslint-import-utils","dist-tags":{"latest":"1.2.2"},"versions":{"1.2.0":{"name":"eslint-import-utils","version":"1.2.0","keywords":["eslint","es6","jsnext","modules","import","export"],"license":"MIT","_id":"eslint-import-utils@1.2.0","maintainers":[{"name":"nadia4474","email":"nadiajames447422@gmx.com"}],"dist":{"shasum":"800d83719bce23f1c3d34d8a7369303d78dba2a8","tarball":"https://registry.npmjs.org/eslint-import-utils/-/eslint-import-utils-1.2.0.tgz","fileCount":126,"integrity":"sha512-V8lgrIZMqxlemzKJA0EZjyatNPGIO+lTZu6fwZZkrsvnnTR66+D8HKkMcL2s1SoPRk/pXJk7hcrp0Fj7O7mtuQ==","signatures":[{"sig":"MEUCIQD2E0UK/EvMlMkfvGAkP1o9byCYJr94n/kVWDFwJ7pl2AIgMISPT7Yg0Who1a9s8/AjtIMi5zbdEIkl/zi7keY1YVQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1282009},"main":"lib/index.js","types":"index.d.ts","engines":{"node":">=4"},"scripts":{"test":"npm run tests-only","build":"babel --quiet --out-dir lib src","mocha":"cross-env BABEL_ENV=test nyc mocha","watch":"npm run tests-only -- -- --watch","pretest":"linklocal","posttest":"eslint . && npm run update:eslint-docs -- --check && markdownlint \"**/*.md\"","prebuild":"rimraf lib","test-all":"node --require babel-register ./scripts/testAll","postbuild":"npm run copy-metafiles","preinstall":"node ./lib/preinstall.js","prepublish":"not-in-publish || npm run prepublishOnly","test-types":"npx --package typescript@latest tsc --noEmit index.d.ts","tests-only":"npm run mocha tests/src","test-compiled":"npm run prepublish && BABEL_ENV=testCompiled mocha --compilers js:babel-register tests/src","test-examples":"npm run build && npm run test-example:legacy && npm run test-example:flat && npm run test-example:v9","copy-metafiles":"node --require babel-register ./scripts/copyMetafiles","prepublishOnly":"safe-publish-latest && npm run build","test-example:v9":"cd examples/v9 && npm install && npm run lint","test-example:flat":"cd examples/flat && npm install && npm run lint","update:eslint-docs":"eslint-doc-generator --rule-doc-title-format prefix-name --rule-doc-section-options false --rule-list-split meta.docs.category --ignore-config stage-0 --config-emoji recommended,☑️","test-example:legacy":"cd examples/legacy && npm install && npm run lint","preupdate:eslint-docs":"npm run build"},"_npmUser":{"name":"nadia4474","email":"nadiajames447422@gmx.com"},"_npmVersion":"10.9.3","description":"Import with sanity.","directories":{"test":"tests"},"_nodeVersion":"22.20.0","dependencies":{"debug":"^3.2.7","hasown":"^2.0.2","semver":"^6.3.1","is-glob":"^4.0.3","doctrine":"^2.1.0","minimatch":"^3.1.2","@rtsao/scc":"^1.1.0","object.values":"^1.2.1","array-includes":"^3.1.9","is-core-module":"^2.16.1","object.groupby":"^1.0.3","tsconfig-paths":"^3.15.0","object.fromentries":"^2.0.8","eslint-module-utils":"^2.12.1","array.prototype.flat":"^1.3.3","array.prototype.flatmap":"^1.3.3","string.prototype.trimend":"^1.0.9","eslint-import-resolver-node":"^0.3.9","array.prototype.findlastindex":"^1.2.6"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.9.0","tmp":"^0.2.1","chai":"^4.3.10","glob":"^7.2.3","mocha":"^3.5.3","redux":"^3.7.2","sinon":"^2.4.1","escope":"^3.6.0","eslint":"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9","rimraf":"^2.7.1","babylon":"^6.18.0","babel-cli":"^6.26.0","cross-env":"^4.0.0","jackspeak":"=2.1.1","linklocal":"^2.8.2","npm-which":"^3.0.1","babel-core":"^6.26.3","in-publish":"^2.0.1","typescript":"^2.8.1 || ~3.9.5 || ~4.5.2","babel-eslint":"=8.0.3 || ^8.2.6","jsonc-parser":"=3.2.0","@types/eslint":"^8.56.12","babel-register":"^6.26.0","lodash.isarray":"^4.0.0","markdownlint-cli":"~0.35","babel-preset-flow":"^6.23.0","find-babel-config":"=1.2.0","fs-copy-file-sync":"^1.1.1","eslint-plugin-json":"^2.1.2","babel-preset-airbnb":"^2.6.0","eslint-module-utils":"file:./utils","safe-publish-latest":"^2.0.0","eslint-doc-generator":"^1.6.1","eslint-plugin-import":"2.x","babel-plugin-istanbul":"^4.1.6","@test-scope/some-module":"file:./tests/files/symlinked-module","typescript-eslint-parser":"^15 || ^20 || ^22","@typescript-eslint/parser":"^2.23.0 || ^3.3.0 || ^4.29.3 || ^5.10.0","eslint-import-resolver-node":"file:./resolvers/node","eslint-plugin-eslint-plugin":"^2.3.0","babel-plugin-module-resolver":"^2.7.1","eslint-import-resolver-webpack":"file:./resolvers/webpack","@angular-eslint/template-parser":"^13.5.0","eslint-import-resolver-typescript":"^1.0.2 || ^1.1.1","eslint-import-test-order-redirect":"file:./tests/files/order-redirect","@eslint/import-test-order-redirect-scoped":"file:./tests/files/order-redirect-scoped"},"peerDependencies":{"eslint":"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"},"_npmOperationalInternal":{"tmp":"tmp/eslint-import-utils_1.2.0_1773672398023_0.7572961147508939","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"eslint-import-utils","version":"1.2.1","keywords":["eslint","es6","jsnext","modules","import","export"],"license":"MIT","_id":"eslint-import-utils@1.2.1","maintainers":[{"name":"nadia4474","email":"nadiajames447422@gmx.com"}],"dist":{"shasum":"3581fadbac76d3fd045a9414aecc74ecf8094004","tarball":"https://registry.npmjs.org/eslint-import-utils/-/eslint-import-utils-1.2.1.tgz","fileCount":126,"integrity":"sha512-/HmGabpFErUpZxG+fosbFj0QCNT5CYDE7Nlka54dOYNjTB60fAXxcpbvY3o0TRy0AWOChp+y1t/qXgYog6NXXg==","signatures":[{"sig":"MEQCIE9bprQvv46Zi3FReennRgqD0yMxFEqjpwHHlnLZGvbKAiB6yJ+t+iBR02klyFMRqqkusXNz7OqZY8qw1NnoiAxI8g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1282051},"main":"lib/index.js","types":"index.d.ts","engines":{"node":">=4"},"scripts":{"test":"npm run tests-only","build":"babel --quiet --out-dir lib src","mocha":"cross-env BABEL_ENV=test nyc mocha","watch":"npm run tests-only -- -- --watch","pretest":"linklocal","posttest":"eslint . && npm run update:eslint-docs -- --check && markdownlint \"**/*.md\"","prebuild":"rimraf lib","test-all":"node --require babel-register ./scripts/testAll","postbuild":"npm run copy-metafiles","preinstall":"node ./lib/preinstall.js","prepublish":"not-in-publish || npm run prepublishOnly","test-types":"npx --package typescript@latest tsc --noEmit index.d.ts","tests-only":"npm run mocha tests/src","test-compiled":"npm run prepublish && BABEL_ENV=testCompiled mocha --compilers js:babel-register tests/src","test-examples":"npm run build && npm run test-example:legacy && npm run test-example:flat && npm run test-example:v9","copy-metafiles":"node --require babel-register ./scripts/copyMetafiles","prepublishOnly":"safe-publish-latest && npm run build","test-example:v9":"cd examples/v9 && npm install && npm run lint","test-example:flat":"cd examples/flat && npm install && npm run lint","update:eslint-docs":"eslint-doc-generator --rule-doc-title-format prefix-name --rule-doc-section-options false --rule-list-split meta.docs.category --ignore-config stage-0 --config-emoji recommended,☑️","test-example:legacy":"cd examples/legacy && npm install && npm run lint","preupdate:eslint-docs":"npm run build"},"_npmUser":{"name":"nadia4474","email":"nadiajames447422@gmx.com"},"_npmVersion":"10.9.3","description":"Import with sanity.","directories":{"test":"tests"},"_nodeVersion":"22.20.0","dependencies":{"debug":"^3.2.7","hasown":"^2.0.2","semver":"^6.3.1","is-glob":"^4.0.3","doctrine":"^2.1.0","minimatch":"^3.1.2","@rtsao/scc":"^1.1.0","object.values":"^1.2.1","array-includes":"^3.1.9","is-core-module":"^2.16.1","object.groupby":"^1.0.3","tsconfig-paths":"^3.15.0","object.fromentries":"^2.0.8","eslint-module-utils":"^2.12.1","array.prototype.flat":"^1.3.3","array.prototype.flatmap":"^1.3.3","string.prototype.trimend":"^1.0.9","eslint-import-resolver-node":"^0.3.9","array.prototype.findlastindex":"^1.2.6"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^11.9.0","tmp":"^0.2.1","chai":"^4.3.10","glob":"^7.2.3","mocha":"^3.5.3","redux":"^3.7.2","sinon":"^2.4.1","escope":"^3.6.0","eslint":"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9","rimraf":"^2.7.1","babylon":"^6.18.0","babel-cli":"^6.26.0","cross-env":"^4.0.0","jackspeak":"=2.1.1","linklocal":"^2.8.2","npm-which":"^3.0.1","babel-core":"^6.26.3","in-publish":"^2.0.1","typescript":"^2.8.1 || ~3.9.5 || ~4.5.2","babel-eslint":"=8.0.3 || ^8.2.6","jsonc-parser":"=3.2.0","@types/eslint":"^8.56.12","babel-register":"^6.26.0","lodash.isarray":"^4.0.0","markdownlint-cli":"~0.35","babel-preset-flow":"^6.23.0","find-babel-config":"=1.2.0","fs-copy-file-sync":"^1.1.1","eslint-plugin-json":"^2.1.2","babel-preset-airbnb":"^2.6.0","eslint-module-utils":"file:./utils","safe-publish-latest":"^2.0.0","eslint-doc-generator":"^1.6.1","eslint-plugin-import":"2.x","babel-plugin-istanbul":"^4.1.6","@test-scope/some-module":"file:./tests/files/symlinked-module","typescript-eslint-parser":"^15 || ^20 || ^22","@typescript-eslint/parser":"^2.23.0 || ^3.3.0 || ^4.29.3 || ^5.10.0","eslint-import-resolver-node":"file:./resolvers/node","eslint-plugin-eslint-plugin":"^2.3.0","babel-plugin-module-resolver":"^2.7.1","eslint-import-resolver-webpack":"file:./resolvers/webpack","@angular-eslint/template-parser":"^13.5.0","eslint-import-resolver-typescript":"^1.0.2 || ^1.1.1","eslint-import-test-order-redirect":"file:./tests/files/order-redirect","@eslint/import-test-order-redirect-scoped":"file:./tests/files/order-redirect-scoped"},"peerDependencies":{"eslint":"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"},"_npmOperationalInternal":{"tmp":"tmp/eslint-import-utils_1.2.1_1773675125556_0.8036903709663423","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"eslint-import-utils","version":"1.2.2","description":"Import with sanity.","engines":{"node":">=4"},"main":"lib/index.js","types":"index.d.ts","directories":{"test":"tests"},"scripts":{"prebuild":"rimraf lib","build":"babel --quiet --out-dir lib src","postbuild":"npm run copy-metafiles","copy-metafiles":"node --require babel-register ./scripts/copyMetafiles","preinstall":"node ./lib/preinstall.js","watch":"npm run tests-only -- -- --watch","pretest":"linklocal","posttest":"eslint . && npm run update:eslint-docs -- --check && markdownlint \"**/*.md\"","mocha":"cross-env BABEL_ENV=test nyc mocha","tests-only":"npm run mocha tests/src","test":"npm run tests-only","test-compiled":"npm run prepublish && BABEL_ENV=testCompiled mocha --compilers js:babel-register tests/src","test-all":"node --require babel-register ./scripts/testAll","test-examples":"npm run build && npm run test-example:legacy && npm run test-example:flat && npm run test-example:v9","test-example:legacy":"cd examples/legacy && npm install && npm run lint","test-example:flat":"cd examples/flat && npm install && npm run lint","test-example:v9":"cd examples/v9 && npm install && npm run lint","test-types":"npx --package typescript@latest tsc --noEmit index.d.ts","prepublishOnly":"safe-publish-latest && npm run build","prepublish":"not-in-publish || npm run prepublishOnly","preupdate:eslint-docs":"npm run build","update:eslint-docs":"eslint-doc-generator --rule-doc-title-format prefix-name --rule-doc-section-options false --rule-list-split meta.docs.category --ignore-config stage-0 --config-emoji recommended,☑️"},"keywords":["eslint","es6","jsnext","modules","import","export"],"license":"MIT","devDependencies":{"@angular-eslint/template-parser":"^13.5.0","@eslint/import-test-order-redirect-scoped":"file:./tests/files/order-redirect-scoped","@test-scope/some-module":"file:./tests/files/symlinked-module","@types/eslint":"^8.56.12","@typescript-eslint/parser":"^2.23.0 || ^3.3.0 || ^4.29.3 || ^5.10.0","babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-eslint":"=8.0.3 || ^8.2.6","babel-plugin-istanbul":"^4.1.6","babel-plugin-module-resolver":"^2.7.1","babel-preset-airbnb":"^2.6.0","babel-preset-flow":"^6.23.0","babel-register":"^6.26.0","babylon":"^6.18.0","chai":"^4.3.10","cross-env":"^4.0.0","escope":"^3.6.0","eslint":"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9","eslint-doc-generator":"^1.6.1","eslint-import-resolver-node":"file:./resolvers/node","eslint-import-resolver-typescript":"^1.0.2 || ^1.1.1","eslint-import-resolver-webpack":"file:./resolvers/webpack","eslint-import-test-order-redirect":"file:./tests/files/order-redirect","eslint-module-utils":"file:./utils","eslint-plugin-eslint-plugin":"^2.3.0","eslint-plugin-import":"2.x","eslint-plugin-json":"^2.1.2","find-babel-config":"=1.2.0","fs-copy-file-sync":"^1.1.1","glob":"^7.2.3","in-publish":"^2.0.1","jackspeak":"=2.1.1","jsonc-parser":"=3.2.0","linklocal":"^2.8.2","lodash.isarray":"^4.0.0","markdownlint-cli":"~0.35","mocha":"^3.5.3","npm-which":"^3.0.1","nyc":"^11.9.0","redux":"^3.7.2","rimraf":"^2.7.1","safe-publish-latest":"^2.0.0","sinon":"^2.4.1","tmp":"^0.2.1","typescript":"^2.8.1 || ~3.9.5 || ~4.5.2","typescript-eslint-parser":"^15 || ^20 || ^22"},"peerDependencies":{"eslint":"^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9"},"dependencies":{"@rtsao/scc":"^1.1.0","array-includes":"^3.1.9","array.prototype.findlastindex":"^1.2.6","array.prototype.flat":"^1.3.3","array.prototype.flatmap":"^1.3.3","debug":"^3.2.7","doctrine":"^2.1.0","eslint-import-resolver-node":"^0.3.9","eslint-module-utils":"^2.12.1","hasown":"^2.0.2","is-core-module":"^2.16.1","is-glob":"^4.0.3","minimatch":"^3.1.2","object.fromentries":"^2.0.8","object.groupby":"^1.0.3","object.values":"^1.2.1","semver":"^6.3.1","string.prototype.trimend":"^1.0.9","tsconfig-paths":"^3.15.0"},"_id":"eslint-import-utils@1.2.2","_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-TeHeY/bI7uZk/K112rbKN/L2s+s9i3HRrNEIiDvw2kKoEsXadGwQgVYN/OEBEJKHYExADAkEyj/Xn/roFQXqSw==","shasum":"d6fd83f4ff2324f8b62aa4f99bd310b0890c2a88","tarball":"https://registry.npmjs.org/eslint-import-utils/-/eslint-import-utils-1.2.2.tgz","fileCount":126,"unpackedSize":1282051,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQChNYUuKMRBqwVO3ncVOln/W/mv3D1RD7mL865IygtxDQIgGcE+KRKmcJWEwqu2VDYIW3locpRZXXIWFCRXzNtjzaQ="}]},"_npmUser":{"name":"nadia4474","email":"nadiajames447422@gmx.com"},"maintainers":[{"name":"nadia4474","email":"nadiajames447422@gmx.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eslint-import-utils_1.2.2_1773835032858_0.629126675653902"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-16T14:46:38.023Z","modified":"2026-03-18T11:57:13.234Z","1.2.0":"2026-03-16T14:46:38.324Z","1.2.1":"2026-03-16T15:32:05.734Z","1.2.2":"2026-03-18T11:57:13.117Z"},"license":"MIT","keywords":["eslint","es6","jsnext","modules","import","export"],"description":"Import with sanity.","maintainers":[{"name":"nadia4474","email":"nadiajames447422@gmx.com"}],"readme":"# eslint-import-utils\n\n## Rules\n\n### Helpful warnings\n\n| Name                                                                   | Description                                                                           | 💼   | ⚠️    | 🚫 | 🔧 | 💡 | ❌  |\n| :--------------------------------------------------------------------- | :------------------------------------------------------------------------------------ | :--- | :---- | :- | :- | :- | :- |\n| [export](docs/rules/export.md)                                         | Forbid any invalid exports, i.e. re-export of the same name.                          | ❗ ☑️ |       |    |    |    |    |\n| [no-deprecated](docs/rules/no-deprecated.md)                           | Forbid imported names marked with `@deprecated` documentation tag.                    |      |       |    |    |    |    |\n| [no-empty-named-blocks](docs/rules/no-empty-named-blocks.md)           | Forbid empty named import blocks.                                                     |      |       |    | 🔧 | 💡 |    |\n| [no-extraneous-dependencies](docs/rules/no-extraneous-dependencies.md) | Forbid the use of extraneous packages.                                                |      |       |    |    |    |    |\n| [no-mutable-exports](docs/rules/no-mutable-exports.md)                 | Forbid the use of mutable exports with `var` or `let`.                                |      |       |    |    |    |    |\n| [no-named-as-default](docs/rules/no-named-as-default.md)               | Forbid use of exported name as identifier of default export.                          |      | ☑️ 🚸 |    |    |    |    |\n| [no-named-as-default-member](docs/rules/no-named-as-default-member.md) | Forbid use of exported name as property of default export.                            |      | ☑️ 🚸 |    |    |    |    |\n| [no-unused-modules](docs/rules/no-unused-modules.md)                   | Forbid modules without exports, or exports without matching import in another module. |      |       |    |    |    |    |\n\n### Module systems\n\n| Name                                                               | Description                                                          | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌  |\n| :----------------------------------------------------------------- | :------------------------------------------------------------------- | :- | :- | :- | :- | :- | :- |\n| [no-amd](docs/rules/no-amd.md)                                     | Forbid AMD `require` and `define` calls.                             |    |    |    |    |    |    |\n| [no-commonjs](docs/rules/no-commonjs.md)                           | Forbid CommonJS `require` calls and `module.exports` or `exports.*`. |    |    |    |    |    |    |\n| [no-import-module-exports](docs/rules/no-import-module-exports.md) | Forbid import statements with CommonJS module.exports.               |    |    |    | 🔧 |    |    |\n| [no-nodejs-modules](docs/rules/no-nodejs-modules.md)               | Forbid Node.js builtin modules.                                      |    |    |    |    |    |    |\n| [unambiguous](docs/rules/unambiguous.md)                           | Forbid potentially ambiguous parse goal (`script` vs. `module`).     |    |    |    |    |    |    |\n\n### Static analysis\n\n| Name                                                                     | Description                                                                                     | 💼   | ⚠️ | 🚫 | 🔧 | 💡 | ❌  |\n| :----------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------- | :--- | :- | :- | :- | :- | :- |\n| [default](docs/rules/default.md)                                         | Ensure a default export is present, given a default import.                                     | ❗ ☑️ |    |    |    |    |    |\n| [enforce-node-protocol-usage](docs/rules/enforce-node-protocol-usage.md) | Enforce either using, or omitting, the `node:` protocol when importing Node.js builtin modules. |      |    |    | 🔧 |    |    |\n| [named](docs/rules/named.md)                                             | Ensure named imports correspond to a named export in the remote file.                           | ❗ ☑️ |    | ⌨️ |    |    |    |\n| [namespace](docs/rules/namespace.md)                                     | Ensure imported namespaces contain dereferenced properties as they are dereferenced.            | ❗ ☑️ |    |    |    |    |    |\n| [no-absolute-path](docs/rules/no-absolute-path.md)                       | Forbid import of modules using absolute paths.                                                  |      |    |    | 🔧 |    |    |\n| [no-cycle](docs/rules/no-cycle.md)                                       | Forbid a module from importing a module with a dependency path back to itself.                  |      |    |    |    |    |    |\n| [no-dynamic-require](docs/rules/no-dynamic-require.md)                   | Forbid `require()` calls with expressions.                                                      |      |    |    |    |    |    |\n| [no-internal-modules](docs/rules/no-internal-modules.md)                 | Forbid importing the submodules of other modules.                                               |      |    |    |    |    |    |\n| [no-relative-packages](docs/rules/no-relative-packages.md)               | Forbid importing packages through relative paths.                                               |      |    |    | 🔧 |    |    |\n| [no-relative-parent-imports](docs/rules/no-relative-parent-imports.md)   | Forbid importing modules from parent directories.                                               |      |    |    |    |    |    |\n| [no-restricted-paths](docs/rules/no-restricted-paths.md)                 | Enforce which files can be imported in a given folder.                                          |      |    |    |    |    |    |\n| [no-self-import](docs/rules/no-self-import.md)                           | Forbid a module from importing itself.                                                          |      |    |    |    |    |    |\n| [no-unresolved](docs/rules/no-unresolved.md)                             | Ensure imports point to a file/module that can be resolved.                                     | ❗ ☑️ |    |    |    |    |    |\n| [no-useless-path-segments](docs/rules/no-useless-path-segments.md)       | Forbid unnecessary path segments in import and require statements.                              |      |    |    | 🔧 |    |    |\n| [no-webpack-loader-syntax](docs/rules/no-webpack-loader-syntax.md)       | Forbid webpack loader syntax in imports.                                                        |      |    |    |    |    |    |\n\n### Style guide\n\n| Name                                                                             | Description                                                                | 💼 | ⚠️    | 🚫 | 🔧 | 💡 | ❌  |\n| :------------------------------------------------------------------------------- | :------------------------------------------------------------------------- | :- | :---- | :- | :- | :- | :- |\n| [consistent-type-specifier-style](docs/rules/consistent-type-specifier-style.md) | Enforce or ban the use of inline type-only markers for named imports.      |    |       |    | 🔧 |    |    |\n| [dynamic-import-chunkname](docs/rules/dynamic-import-chunkname.md)               | Enforce a leading comment with the webpackChunkName for dynamic imports.   |    |       |    |    | 💡 |    |\n| [exports-last](docs/rules/exports-last.md)                                       | Ensure all exports appear after other statements.                          |    |       |    |    |    |    |\n| [extensions](docs/rules/extensions.md)                                           | Ensure consistent use of file extension within the import path.            |    |       |    |    |    |    |\n| [first](docs/rules/first.md)                                                     | Ensure all imports appear before other statements.                         |    |       |    | 🔧 |    |    |\n| [group-exports](docs/rules/group-exports.md)                                     | Prefer named exports to be grouped together in a single export declaration |    |       |    |    |    |    |\n| [imports-first](docs/rules/imports-first.md)                                     | Replaced by `import/first`.                                                |    |       |    | 🔧 |    | ❌  |\n| [max-dependencies](docs/rules/max-dependencies.md)                               | Enforce the maximum number of dependencies a module can have.              |    |       |    |    |    |    |\n| [newline-after-import](docs/rules/newline-after-import.md)                       | Enforce a newline after import statements.                                 |    |       |    | 🔧 |    |    |\n| [no-anonymous-default-export](docs/rules/no-anonymous-default-export.md)         | Forbid anonymous values as default exports.                                |    |       |    |    |    |    |\n| [no-default-export](docs/rules/no-default-export.md)                             | Forbid default exports.                                                    |    |       |    |    |    |    |\n| [no-duplicates](docs/rules/no-duplicates.md)                                     | Forbid repeated import of the same module in multiple places.              |    | ☑️ 🚸 |    | 🔧 |    |    |\n| [no-named-default](docs/rules/no-named-default.md)                               | Forbid named default exports.                                              |    |       |    |    |    |    |\n| [no-named-export](docs/rules/no-named-export.md)                                 | Forbid named exports.                                                      |    |       |    |    |    |    |\n| [no-namespace](docs/rules/no-namespace.md)                                       | Forbid namespace (a.k.a. \"wildcard\" `*`) imports.                          |    |       |    | 🔧 |    |    |\n| [no-unassigned-import](docs/rules/no-unassigned-import.md)                       | Forbid unassigned imports                                                  |    |       |    |    |    |    |\n| [order](docs/rules/order.md)                                                     | Enforce a convention in module import order.                               |    |       |    | 🔧 |    |    |\n| [prefer-default-export](docs/rules/prefer-default-export.md)                     | Prefer a default export if module exports a single name or multiple names. |    |       |    |    |    |    |\n\n<!-- end auto-generated rules list -->\n\n## Installation\n\n```sh\n# inside your project's working tree\nnpm install eslint-import-utils --save-dev\n```\n\n### Config - Flat (`eslint.config.js`)\n\nAll rules are off by default. However, you may configure them manually in your `eslint.config.(js|cjs|mjs)`, or extend one of the preset configs:\n\n```js\nimport importPlugin from 'eslint-import-utils';\nimport js from '@eslint/js';\n\nexport default [\n  js.configs.recommended,\n  importPlugin.flatConfigs.recommended,\n  {\n    files: ['**/*.{js,mjs,cjs}'],\n    languageOptions: {\n      ecmaVersion: 'latest',\n      sourceType: 'module',\n    },\n    rules: {\n      'no-unused-vars': 'off',\n      'import/no-dynamic-require': 'warn',\n      'import/no-nodejs-modules': 'warn',\n    },\n  },\n];\n```\n\n## TypeScript\n\nYou may use the following snippet or assemble your own config using the granular settings described below it.\n\nMake sure you have installed [`@typescript-eslint/parser`] and [`eslint-import-resolver-typescript`] which are used in the following configuration.\n\n```jsonc\n{\n  \"extends\": [\n    \"eslint:recommended\",\n    \"plugin:import/recommended\",\n// the following lines do the trick\n    \"plugin:import/typescript\",\n  ],\n  \"settings\": {\n    \"import/resolver\": {\n      // You will also need to install and configure the TypeScript resolver\n      // See also https://github.com/import-js/eslint-import-resolver-typescript#configuration\n      \"typescript\": true,\n      \"node\": true,\n    },\n  },\n}\n```\n\n### Config - Flat with `config()` in `typescript-eslint`\n\nIf you are using the `config` method from [`typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint), ensure that the `flatConfig` is included within the `extends` array.\n\n```js\nimport tseslint from 'typescript-eslint';\nimport importPlugin from 'eslint-import-utils';\nimport js from '@eslint/js';\n\nexport default tseslint.config(\n  js.configs.recommended,\n  // other configs...\n  {\n    files: ['**/*.{ts,tsx}'],\n    extends: [importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript],\n    // other configs...\n  }\n);\n```\n\n## Settings\n\nYou may set the following settings in your `.eslintrc`:\n\n### `import/extensions`\n\nA list of file extensions that will be parsed as modules and inspected for\n`export`s.\n\nThis defaults to `['.js']`, unless you are using the `react` shared config,\nin which case it is specified as `['.js', '.jsx']`. Despite the default,\nif you are using TypeScript (without the `plugin:import/typescript` config\ndescribed above) you must specify the new extensions (`.ts`, and also `.tsx`\nif using React).\n\n```js\n\"settings\": {\n  \"import/extensions\": [\n    \".js\",\n    \".jsx\"\n  ]\n}\n```\n\nIf you require more granular extension definitions, you can use:\n\n```js\n\"settings\": {\n  \"import/resolver\": {\n    \"node\": {\n      \"extensions\": [\n        \".js\",\n        \".jsx\"\n      ]\n    }\n  }\n}\n```\n\nNote that this is different from (and likely a subset of) any `import/resolver`\nextensions settings, which may include `.json`, `.coffee`, etc. which will still\nfactor into the `no-unresolved` rule.\n\nAlso, the following `import/ignore` patterns will overrule this list.\n\n### `import/ignore`\n\nA list of regex strings that, if matched by a path, will\nnot report the matching module if no `export`s are found.\nIn practice, this means rules other than [`no-unresolved`](./docs/rules/no-unresolved.md#ignore) will not report on any\n`import`s with (absolute filesystem) paths matching this pattern.\n\n`no-unresolved` has its own [`ignore`](./docs/rules/no-unresolved.md#ignore) setting.\n\n```jsonc\n{\n  \"settings\": {\n    \"import/ignore\": [\n      \"\\.coffee$\", // fraught with parse errors\n      \"\\.(scss|less|css)$\", // can't parse unprocessed CSS modules, either\n    ],\n  },\n}\n```\n\n### `import/core-modules`\n\nAn array of additional modules to consider as \"core\" modules--modules that should\nbe considered resolved but have no path on the filesystem. Your resolver may\nalready define some of these (for example, the Node resolver knows about `fs` and\n`path`), so you need not redefine those.\n\nFor example, Electron exposes an `electron` module:\n\n```js\nimport 'electron'  // without extra config, will be flagged as unresolved!\n```\n\nthat would otherwise be unresolved. To avoid this, you may provide `electron` as a\ncore module:\n\n```jsonc\n// .eslintrc\n{\n  \"settings\": {\n    \"import/core-modules\": [\"electron\"],\n  },\n}\n```\n\nIn Electron's specific case, there is a shared config named `electron`\nthat specifies this for you.\n\nContribution of more such shared configs for other platforms are welcome!\n\n### `import/external-module-folders`\n\nAn array of folders. Resolved modules only from those folders will be considered as \"external\". By default - `[\"node_modules\"]`. Makes sense if you have configured your path or webpack to handle your internal paths differently and want to consider modules from some folders, for example `bower_components` or `jspm_modules`, as \"external\".\n\nThis option is also useful in a monorepo setup: list here all directories that contain monorepo's packages and they will be treated as external ones no matter which resolver is used.\n\nIf you are using `yarn` PnP as your package manager, add the `.yarn` folder and all your installed dependencies will be considered as `external`, instead of `internal`.\n\nEach item in this array is either a folder's name, its subpath, or its absolute prefix path:\n\n - `jspm_modules` will match any file or folder named `jspm_modules` or which has a direct or non-direct parent named `jspm_modules`, e.g. `/home/me/project/jspm_modules` or `/home/me/project/jspm_modules/some-pkg/index.js`.\n\n - `packages/core` will match any path that contains these two segments, for example `/home/me/project/packages/core/src/utils.js`.\n\n - `/home/me/project/packages` will only match files and directories inside this directory, and the directory itself.\n\nPlease note that incomplete names are not allowed here so `components` won't match `bower_components` and `packages/ui` won't match `packages/ui-utils` (but will match `packages/ui/utils`).\n\n### `import/parsers`\n\nA map from parsers to file extension arrays. If a file extension is matched, the\ndependency parser will require and use the map key as the parser instead of the\nconfigured ESLint parser. This is useful if you're inter-op-ing with TypeScript\ndirectly using webpack, for example:\n\n```jsonc\n// .eslintrc\n{\n  \"settings\": {\n    \"import/parsers\": {\n      \"@typescript-eslint/parser\": [\".ts\", \".tsx\"],\n    },\n  },\n}\n```\n\nIn this case, [`@typescript-eslint/parser`](https://www.npmjs.com/package/@typescript-eslint/parser)\nmust be installed and require-able from the running `eslint` module's location\n(i.e., install it as a peer of ESLint).\n\nThis is currently only tested with `@typescript-eslint/parser` (and its predecessor,\n`typescript-eslint-parser`) but should theoretically work with any moderately\nESTree-compliant parser.\n\nIt's difficult to say how well various plugin features will be supported, too,\ndepending on how far down the rabbit hole goes. Submit an issue if you find strange\nbehavior beyond here, but steel your heart against the likely outcome of closing\nwith `wontfix`.\n\n### `import/resolver`\n\nSee [resolvers](#resolvers).\n\n### `import/cache`\n\nSettings for cache behavior. Memoization is used at various levels to avoid the copious amount of `fs.statSync`/module parse calls required to correctly report errors.\n\nFor normal `eslint` console runs, the cache lifetime is irrelevant, as we can strongly assume that files should not be changing during the lifetime of the linter process (and thus, the cache in memory)\n\nFor long-lasting processes, like [`eslint_d`] or [`eslint-loader`], however, it's important that there be some notion of staleness.\n\nIf you never use [`eslint_d`] or [`eslint-loader`], you may set the cache lifetime to `Infinity` and everything should be fine:\n\n```jsonc\n// .eslintrc\n{\n  \"settings\": {\n    \"import/cache\": {\n      \"lifetime\": \"∞\", // or Infinity, in a JS config\n    },\n  },\n}\n```\n\nOtherwise, set some integer, and cache entries will be evicted after that many seconds have elapsed:\n\n```jsonc\n// .eslintrc\n{\n  \"settings\": {\n    \"import/cache\": {\n      \"lifetime\": 5, // 30 is the default\n    },\n  },\n}\n```\n\n[`eslint_d`]: https://www.npmjs.com/package/eslint_d\n[`eslint-loader`]: https://www.npmjs.com/package/eslint-loader\n\n### `import/internal-regex`\n\nA regex for packages should be treated as internal. Useful when you are utilizing a monorepo setup or developing a set of packages that depend on each other.\n\nBy default, any package referenced from [`import/external-module-folders`](#importexternal-module-folders) will be considered as \"external\", including packages in a monorepo like yarn workspace or lerna environment. If you want to mark these packages as \"internal\" this will be useful.\n\nFor example, if your packages in a monorepo are all in `@scope`, you can configure `import/internal-regex` like this\n\n```jsonc\n// .eslintrc\n{\n  \"settings\": {\n    \"import/internal-regex\": \"^@scope/\",\n  },\n}\n```\n\n### `import/node-version`\n\nA string that represents the version of Node.js that you are using.\nA falsy value will imply the version of Node.js that you are running ESLint with.\n\n```jsonc\n// .eslintrc\n{\n  \"settings\": {\n    \"import/node-version\": \"22.3.4\",\n  },\n}\n```\n\n## SublimeLinter-eslint\n\nSublimeLinter-eslint introduced a change to support `.eslintignore` files\nwhich altered the way file paths are passed to ESLint when linting during editing.\nThis change sends a relative path instead of the absolute path to the file (as ESLint\nnormally provides), which can make it impossible for this plugin to resolve dependencies\non the filesystem.\n\nThis workaround should no longer be necessary with the release of ESLint 2.0, when\n`.eslintignore` will be updated to work more like a `.gitignore`, which should\nsupport proper ignoring of absolute paths via `--stdin-filename`.\n\nIn the meantime, see [roadhump/SublimeLinter-eslint#58](https://github.com/roadhump/SublimeLinter-eslint/issues/58)\nfor more details and discussion, but essentially, you may find you need to add the following\n`SublimeLinter` config to your Sublime project file:\n\n```json\n{\n    \"folders\":\n    [\n        {\n            \"path\": \"code\"\n        }\n    ],\n    \"SublimeLinter\":\n    {\n        \"linters\":\n        {\n            \"eslint\":\n            {\n                \"chdir\": \"${project}/code\"\n            }\n        }\n    }\n}\n```\n\nNote that `${project}/code` matches the `code` provided at `folders[0].path`.\n\nThe purpose of the `chdir` setting, in this case, is to set the working directory\nfrom which ESLint is executed to be the same as the directory on which SublimeLinter-eslint\nbases the relative path it provides.\n\nSee the SublimeLinter docs on [`chdir`](https://www.sublimelinter.com/en/latest/linter_settings.html#chdir)\nfor more information, in case this does not work with your project.\n\nIf you are not using `.eslintignore`, or don't have a Sublime project file, you can also\ndo the following via a `.sublimelinterrc` file in some ancestor directory of your\ncode:\n\n```json\n{\n  \"linters\": {\n    \"eslint\": {\n      \"args\": [\"--stdin-filename\", \"@\"]\n    }\n  }\n}\n```\n\nI also found that I needed to set `rc_search_limit` to `null`, which removes the file\nhierarchy search limit when looking up the directory tree for `.sublimelinterrc`:\n\nIn Package Settings / SublimeLinter / User Settings:\n\n```json\n{\n  \"user\": {\n    \"rc_search_limit\": null\n  }\n}\n```\n","readmeFilename":"README.md"}