ESLint InterlaceESLint Interlace
Plugin: import-next

Overview

Drop-in replacement for eslint-plugin-import with 100x faster cycle detection

Live from GitHub

This content is fetched directly from README.md on GitHub and cached for 1 hour.

100x Faster

Cycle detection in milliseconds, not minutes. Optimized for large monorepos.


ESLint Interlace Logo

Next-generation import sorting, validation, and architectural boundaries.

NPM VersionNPM DownloadsPackage LicenseCodecovSince Dec 2025

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

npm install eslint-plugin-import-next --save-dev

๐Ÿ”„ Compatibility Matrix

RuleOriginal PluginStatusNotes
All Ruleseslint-plugin-importโœ… SupportedFull drop-in replacement

โš™๏ธ Configuration Presets

PresetDescription
recommendedWarns on import order issues
strictAll rules set to error for production-ready code
typescriptOptimized for TypeScript projects
module-resolutionFocus on import resolution
import-styleFocus on import formatting
esmEnforce ES Modules only
architectureClean architecture boundaries
performanceBundle optimization (barrel detection)
enterpriseTeam boundaries & legacy import tracking
errorsMatches eslint-plugin-import errors preset
warningsMatches eslint-plugin-import warnings preset

Rules

Legend

IconDescription
๐Ÿ’ผ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.
RuleCWEOWASPCVSSDescription๐Ÿ’ผโš ๏ธ๐Ÿ”ง๐Ÿ’ก๐Ÿšซ
consistent-type-specifier-styleESLint rule documentation for consistent-type-specifier-style
defaultESLint rule documentation for default
dynamic-import-chunknameESLint rule documentation for dynamic-import-chunkname
enforce-dependency-directionESLint rule documentation for enforce-dependency-direction
enforce-import-orderESLint rule documentation for enforce-import-order
enforce-team-boundariesESLint rule documentation for enforce-team-boundaries
exportESLint rule documentation for export
exports-lastESLint rule documentation for exports-last
extensionsESLint rule documentation for extensions
firstESLint rule documentation for first
group-exportsESLint rule documentation for group-exports
max-dependenciesESLint rule documentation for max-dependencies
namedESLint rule documentation for named
namespaceESLint rule documentation for namespace
newline-after-importESLint rule documentation for newline-after-import
no-absolute-pathESLint rule documentation for no-absolute-path
no-amdESLint rule documentation for no-amd
no-anonymous-default-exportESLint rule documentation for no-anonymous-default-export
no-barrel-fileESLint rule documentation for no-barrel-file
no-barrel-importESLint rule documentation for no-barrel-import
no-commonjsESLint rule documentation for no-commonjs
no-cross-domain-importsESLint rule documentation for no-cross-domain-imports
no-cycleESLint rule documentation for no-cycle
no-default-exportESLint rule documentation for no-default-export
no-deprecatedESLint rule documentation for no-deprecated
no-duplicatesESLint rule documentation for no-duplicates
no-dynamic-requireESLint rule documentation for no-dynamic-require
no-empty-named-blocksESLint rule documentation for no-empty-named-blocks
no-extraneous-dependenciesESLint rule documentation for no-extraneous-dependencies
no-full-package-importESLint rule documentation for no-full-package-import
no-import-module-exportsESLint rule documentation for no-import-module-exports
no-internal-modulesESLint rule documentation for no-internal-modules
no-legacy-importsESLint rule documentation for no-legacy-imports
no-mutable-exportsESLint rule documentation for no-mutable-exports
no-named-as-defaultESLint rule documentation for no-named-as-default
no-named-as-default-memberESLint rule documentation for no-named-as-default-member
no-named-defaultESLint rule documentation for no-named-default
no-named-exportESLint rule documentation for no-named-export
no-namespaceESLint rule documentation for no-namespace
no-nodejs-modulesESLint rule documentation for no-nodejs-modules
no-relative-packagesESLint rule documentation for no-relative-packages
no-relative-parent-importsESLint rule documentation for no-relative-parent-imports
no-restricted-pathsESLint rule documentation for no-restricted-paths
no-self-importESLint rule documentation for no-self-import
no-unassigned-importESLint rule documentation for no-unassigned-import
no-unresolvedESLint rule documentation for no-unresolved
no-unused-modulesESLint rule documentation for no-unused-modules
no-useless-path-segmentsESLint rule documentation for no-useless-path-segments
prefer-default-exportESLint rule documentation for prefer-default-export
prefer-direct-importESLint rule documentation for prefer-direct-import
prefer-modern-apiESLint rule documentation for prefer-modern-api
prefer-node-protocolESLint rule documentation for prefer-node-protocol
prefer-tree-shakeable-importsESLint rule documentation for prefer-tree-shakeable-imports
require-import-approvalESLint rule documentation for require-import-approval
unambiguousESLint rule documentation for unambiguous

Part of the Interlace ESLint Ecosystem โ€” AI-native security plugins with LLM-optimized error messages:

PluginDownloadsDescription
eslint-plugin-secure-codingGeneral security rules & OWASP guidelines.
eslint-plugin-pgPostgreSQL security & best practices.
eslint-plugin-cryptoNodeJS Cryptography security rules.
eslint-plugin-jwtJWT security & best practices.
eslint-plugin-browser-securityBrowser-specific security & XSS prevention.
eslint-plugin-express-securityExpress.js security hardening rules.
eslint-plugin-lambda-securityAWS Lambda security best practices.
eslint-plugin-nestjs-securityNestJS security rules & patterns.
eslint-plugin-mongodb-securityMongoDB security best practices.
eslint-plugin-vercel-ai-securityVercel AI SDK security hardening.
eslint-plugin-import-nextNext-gen import sorting & architecture.

๐Ÿ“„ License

MIT ยฉ Ofri Peretz

ESLint Interlace Plugin

View README.md on GitHub โ†’

On this page

No Headings