A lightweight ESLint plugin for import/export linting that ports useful rules from eslint-plugin-import-x without requiring a resolver or heavy dependencies. Current stable version 0.6.0 supports ESLint 9 and 10, requires Node >=18.18, and ships zero runtime dependencies. Key differentiators: no binary resolver, no Babel/Flow support, purely ESLint flat config, TypeScript types included. Released under MIT, with monthly updates since initial release in 2025. Ideal for users of @antfu/eslint-config who want import rules without resolver overhead.
npm install eslint-plugin-import-liteVerified import paths — ran on the pinned version, not inferred.
Example ESLint flat configuration enabling the recommended rules from eslint-plugin-import-lite.
Update rule options to match new naming: preferAutomatic -> preferPreferAutomatic (check docs).
Use import syntax and flat config. Switch to module type or use .mjs extension.
Use eslint-plugin-import-x or configure a resolver separately if needed.
Migrate TypeScript/JavaScript code away from Babel/Flow-specific syntax.
Use import syntax, ensure parent package is ESM, or use dynamic import().
Run: npm install eslint-plugin-import-lite --save-dev
Check src/rules directory for available rules; only 9 rules are implemented.