An ESLint plugin for validating imports and exports, leveraging a novel algorithm with the OXC Rust-based parser for high performance. Current stable version is 2.2.1, with a rapid release cadence. It offers an editor mode that keeps in-memory data structures updated with filesystem changes, preventing stale errors. Unlike eslint-plugin-import and eslint-plugin-import-x, it does not support user-supplied resolvers and only analyzes first-party code within rootDir. It includes rules like no-cycle, no-entry-point-imports, no-external-barrel-reexports, and no-named-as-default. Requires ESLint >= 9.0.0 and ESM-only codebases.
npm install eslint-plugin-fast-importVerified import paths — ran on the pinned version, not inferred.
Configuring eslint-plugin-fast-import with recommended rules and settings including rootDir and alias.
Upgrade to ESLint 9+ and use flat config with ESM imports.
Set rootDir to the root of your project (e.g., path.resolve(__dirname, 'src')).
Convert your codebase to ESM syntax.
For third-party re-exports, manually check or use a different plugin.
Switch to configs.recommended and add extra rules as needed.
Run 'npm install --save-dev eslint-plugin-fast-import' and ensure it's in package.json.
Use a unique key, e.g., plugins: { 'fast-import': fastImport }.Set rule to 'error', 'warn', 'off', or ['warn', { ... }].Add settings: { 'fast-import': { rootDir: __dirname } } to ESLint config.