Registry / testing / eslint-plugin-import-lite

eslint-plugin-import-lite

JSON →
library0.6.0jsnpmunverified

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.

testing
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ESM-only package, exports default object. For flat config, use spread: ...plugin.configs.recommended

import plugin from 'eslint-plugin-import-lite'

Named export of rules map, also ESM-only.

import { rules } from 'eslint-plugin-import-lite'

Contains recommended and all configs as flat config arrays.

import { configs } from 'eslint-plugin-import-lite'

Example ESLint flat configuration enabling the recommended rules from eslint-plugin-import-lite.

// eslint.config.js import plugin from 'eslint-plugin-import-lite'; export default [ ...plugin.configs.recommended, // Override rules if needed { rules: { 'import-lite/first': 'error', 'import-lite/no-default-export': 'warn', }, }, ];
Debug
Known footguns
breakingv0.3.0 renames options for 'consistent-type-specifier-style'
gotchaPlugin is ESM-only; requires Node >=18.18 and ESLint flat config (no .eslintrc).
gotchaNo resolver support – rules that need module resolution (e.g., 'no-unresolved') are not included.
deprecatedDropped Babel and Flow support since v0.1.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
13 hits · last 30 days
gptbot
4
ahrefsbot
4
amazonbot
4
script
1
Resources