{"id":19793,"library":"eslint-plugin-import-lite","title":"eslint-plugin-import-lite","description":"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.","status":"active","version":"0.6.0","language":"javascript","source_language":"en","source_url":"https://github.com/9romise/eslint-plugin-import-lite","tags":["javascript","eslint","plugin","eslintplugin","eslint-plugin","import","eslint-plugin-import","typescript"],"install":[{"cmd":"npm install eslint-plugin-import-lite","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-import-lite","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-import-lite","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency – plugin requires ESLint 9 or 10","package":"eslint","optional":false}],"imports":[{"note":"ESM-only package, exports default object. For flat config, use spread: ...plugin.configs.recommended","wrong":"const plugin = require('eslint-plugin-import-lite')","symbol":"plugin","correct":"import plugin from 'eslint-plugin-import-lite'"},{"note":"Named export of rules map, also ESM-only.","wrong":"const { rules } = require('eslint-plugin-import-lite')","symbol":"rules","correct":"import { rules } from 'eslint-plugin-import-lite'"},{"note":"Contains recommended and all configs as flat config arrays.","wrong":null,"symbol":"configs","correct":"import { configs } from 'eslint-plugin-import-lite'"}],"quickstart":{"code":"// eslint.config.js\nimport plugin from 'eslint-plugin-import-lite';\n\nexport default [\n  ...plugin.configs.recommended,\n  // Override rules if needed\n  {\n    rules: {\n      'import-lite/first': 'error',\n      'import-lite/no-default-export': 'warn',\n    },\n  },\n];","lang":"javascript","description":"Example ESLint flat configuration enabling the recommended rules from eslint-plugin-import-lite."},"warnings":[{"fix":"Update rule options to match new naming: preferAutomatic -> preferPreferAutomatic (check docs).","message":"v0.3.0 renames options for 'consistent-type-specifier-style'","severity":"breaking","affected_versions":">=0.3.0 <0.3.0"},{"fix":"Use import syntax and flat config. Switch to module type or use .mjs extension.","message":"Plugin is ESM-only; requires Node >=18.18 and ESLint flat config (no .eslintrc).","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use eslint-plugin-import-x or configure a resolver separately if needed.","message":"No resolver support – rules that need module resolution (e.g., 'no-unresolved') are not included.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Migrate TypeScript/JavaScript code away from Babel/Flow-specific syntax.","message":"Dropped Babel and Flow support since v0.1.0","severity":"deprecated","affected_versions":">=0.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use import syntax, ensure parent package is ESM, or use dynamic import().","cause":"Package is ESM-only; CommonJS require() fails.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module ..."},{"fix":"Run: npm install eslint-plugin-import-lite --save-dev","cause":"Plugin not installed or not in node_modules.","error":"Failed to load plugin 'import-lite': Cannot find module 'eslint-plugin-import-lite'"},{"fix":"Check src/rules directory for available rules; only 9 rules are implemented.","cause":"Trying to use a rule that was not ported or removed in later version.","error":"Invalid config: \"import-lite/first\" has been removed."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}