eslint-plugin-import-next
v2.3.5
Published
Drop-in replacement for eslint-plugin-import. 100x faster no-cycle detection, AI-optimized fixes, zero config migration.
Maintainers
Readme
Description
This plugin provides Next-generation import sorting, validation, and architectural boundaries. By using this plugin, you can proactively identify and mitigate security risks across your entire codebase.
Philosophy
Interlace fosters strength through integration. Instead of stacking isolated rules, we interlace security directly into your workflow to create a resilient fabric of code. We believe tools should guide rather than gatekeep, providing educational feedback that strengthens the developer with every interaction.
Getting Started
- To check out the guide, visit eslint.interlace.tools. 📚
- 要查看中文 指南, 请访问 eslint.interlace.tools. 📚
- 가이드 문서는 eslint.interlace.tools에서 확인하실 수 있습니다. 📚
- ガイドは eslint.interlace.toolsでご確認ください。 📚
- Para ver la guía, visita eslint.interlace.tools. 📚
- للاطلاع على الدليل، قم بزيارة eslint.interlace.tools. 📚
npm install eslint-plugin-import-next --save-dev🔄 Compatibility Matrix
| Rule | Original Plugin | Status | Notes |
| :-------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------- | :----------------------- |
| All Rules | eslint-plugin-import | ✅ Supported | Full drop-in replacement |
⚙️ Configuration Presets
| Preset | Description |
| :------------------ | :----------------------------------------------- |
| recommended | Warns on import order issues |
| strict | All rules set to error for production-ready code |
| typescript | Optimized for TypeScript projects |
| module-resolution | Focus on import resolution |
| import-style | Focus on import formatting |
| esm | Enforce ES Modules only |
| architecture | Clean architecture boundaries |
| performance | Bundle optimization (barrel detection) |
| enterprise | Team boundaries & legacy import tracking |
| errors | Matches eslint-plugin-import errors preset |
| warnings | Matches eslint-plugin-import warnings preset |
Rules
Legend
| Icon | Description |
| :---: | :--- |
| 💼 | Recommended: Included in the recommended preset. |
| ⚠️ | Warns: Set towarn in recommended preset. |
| 🔧 | Auto-fixable: Automatically fixable by the --fix CLI option. |
| 💡 | Suggestions: Providing code suggestions in IDE. |
| 🚫 | Deprecated: This rule is deprecated. |
| Rule | CWE | OWASP | CVSS | Description | 💼 | ⚠️ | 🔧 | 💡 | 🚫 | | :--- | :---: | :---: | :---: | :--- | :---: | :---: | :---: | :---: | :---: | | consistent-type-specifier-style | | | | ESLint rule documentation for consistent-type-specifier-style | | | | | | | default | | | | ESLint rule documentation for default | | | | | | | dynamic-import-chunkname | | | | ESLint rule documentation for dynamic-import-chunkname | | | | | | | enforce-dependency-direction | | | | ESLint rule documentation for enforce-dependency-direction | | | | | | | enforce-import-order | | | | ESLint rule documentation for enforce-import-order | | | | | | | enforce-team-boundaries | | | | ESLint rule documentation for enforce-team-boundaries | | | | | | | export | | | | ESLint rule documentation for export | | | | | | | exports-last | | | | ESLint rule documentation for exports-last | | | | | | | extensions | | | | ESLint rule documentation for extensions | | | | | | | first | | | | ESLint rule documentation for first | | | | | | | group-exports | | | | ESLint rule documentation for group-exports | | | | | | | max-dependencies | | | | ESLint rule documentation for max-dependencies | | | | | | | named | | | | ESLint rule documentation for named | | | | | | | namespace | | | | ESLint rule documentation for namespace | | | | | | | newline-after-import | | | | ESLint rule documentation for newline-after-import | | | | | | | no-absolute-path | | | | ESLint rule documentation for no-absolute-path | | | | | | | no-amd | | | | ESLint rule documentation for no-amd | | | | | | | no-anonymous-default-export | | | | ESLint rule documentation for no-anonymous-default-export | | | | | | | no-barrel-file | | | | ESLint rule documentation for no-barrel-file | | | | | | | no-barrel-import | | | | ESLint rule documentation for no-barrel-import | | | | | | | no-commonjs | | | | ESLint rule documentation for no-commonjs | | | | | | | no-cross-domain-imports | | | | ESLint rule documentation for no-cross-domain-imports | | | | | | | no-cycle | | | | ESLint rule documentation for no-cycle | | | | | | | no-default-export | | | | ESLint rule documentation for no-default-export | | | | | | | no-deprecated | | | | ESLint rule documentation for no-deprecated | | | | | | | no-duplicates | | | | ESLint rule documentation for no-duplicates | | | | | | | no-dynamic-require | | | | ESLint rule documentation for no-dynamic-require | | | | | | | no-empty-named-blocks | | | | ESLint rule documentation for no-empty-named-blocks | | | | | | | no-extraneous-dependencies | | | | ESLint rule documentation for no-extraneous-dependencies | | | | | | | no-full-package-import | | | | ESLint rule documentation for no-full-package-import | | | | | | | no-import-module-exports | | | | ESLint rule documentation for no-import-module-exports | | | | | | | no-internal-modules | | | | ESLint rule documentation for no-internal-modules | | | | | | | no-legacy-imports | | | | ESLint rule documentation for no-legacy-imports | | | | | | | no-mutable-exports | | | | ESLint rule documentation for no-mutable-exports | | | | | | | no-named-as-default | | | | ESLint rule documentation for no-named-as-default | | | | | | | no-named-as-default-member | | | | ESLint rule documentation for no-named-as-default-member | | | | | | | no-named-default | | | | ESLint rule documentation for no-named-default | | | | | | | no-named-export | | | | ESLint rule documentation for no-named-export | | | | | | | no-namespace | | | | ESLint rule documentation for no-namespace | | | | | | | no-nodejs-modules | | | | ESLint rule documentation for no-nodejs-modules | | | | | | | no-relative-packages | | | | ESLint rule documentation for no-relative-packages | | | | | | | no-relative-parent-imports | | | | ESLint rule documentation for no-relative-parent-imports | | | | | | | no-restricted-paths | | | | ESLint rule documentation for no-restricted-paths | | | | | | | no-self-import | | | | ESLint rule documentation for no-self-import | | | | | | | no-unassigned-import | | | | ESLint rule documentation for no-unassigned-import | | | | | | | no-unresolved | | | | ESLint rule documentation for no-unresolved | | | | | | | no-unused-modules | | | | ESLint rule documentation for no-unused-modules | | | | | | | no-useless-path-segments | | | | ESLint rule documentation for no-useless-path-segments | | | | | | | prefer-default-export | | | | ESLint rule documentation for prefer-default-export | | | | | | | prefer-direct-import | | | | ESLint rule documentation for prefer-direct-import | | | | | | | prefer-modern-api | | | | ESLint rule documentation for prefer-modern-api | | | | | | | prefer-node-protocol | | | | ESLint rule documentation for prefer-node-protocol | | | | | | | prefer-tree-shakeable-imports | | | | ESLint rule documentation for prefer-tree-shakeable-imports | | | | | | | require-import-approval | | | | ESLint rule documentation for require-import-approval | | | | | | | unambiguous | | | | ESLint rule documentation for unambiguous | | | | | |
🔗 Related ESLint Plugins
Part of the Interlace ESLint Ecosystem — AI-native security plugins with LLM-optimized error messages:
| Plugin | Downloads | Description |
| :--- | :---: | :--- |
| eslint-plugin-secure-coding | | General security rules & OWASP guidelines. |
|
eslint-plugin-pg | | PostgreSQL security & best practices. |
|
eslint-plugin-crypto | | NodeJS Cryptography security rules. |
|
eslint-plugin-jwt | | JWT security & best practices. |
|
eslint-plugin-browser-security | | Browser-specific security & XSS prevention. |
|
eslint-plugin-express-security | | Express.js security hardening rules. |
|
eslint-plugin-lambda-security | | AWS Lambda security best practices. |
|
eslint-plugin-nestjs-security | | NestJS security rules & patterns. |
|
eslint-plugin-mongodb-security | | MongoDB security best practices. |
|
eslint-plugin-vercel-ai-security | | Vercel AI SDK security hardening. |
|
eslint-plugin-import-next | | Next-gen import sorting & architecture. |
📄 License
MIT © Ofri Peretz
