# eslint-plugin-import-lite

> A lightweight ESLint plugin for import/export linting

Latest version **0.6.0** (published 2026-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-import-lite
pnpm add eslint-plugin-import-lite
yarn add eslint-plugin-import-lite
bun add eslint-plugin-import-lite
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2026-03-19 |
| First published | 2025-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | ^18.18.0 \|\| ^20.9.0 \|\| >=21.1.0 |
| Dependencies | 0 |
| Unpacked size | 50.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 24 |
| Author | Vida Xie |
| Maintainers | vida0905 |
| Keywords | eslint, plugin, eslintplugin, eslint-plugin, import, eslint-plugin-import |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-import-lite
- Repository: https://github.com/9romise/eslint-plugin-import-lite
- Homepage: https://github.com/9romise/eslint-plugin-import-lite#readme
- Issues: https://github.com/9romise/eslint-plugin-import-lite/issues
- npm.io page: https://npm.io/package/eslint-plugin-import-lite

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.6.0 (latest) — 2026-03-19
- 0.5.2 — 2026-02-22
- 0.5.1 — 2026-02-12
- 0.5.0 — 2026-01-05
- 0.4.0 — 2025-12-17
- 0.3.1 — 2025-12-17
- 0.3.0 — 2025-06-18
- 0.2.0 — 2025-06-15
- 0.1.1 — 2025-06-15
- 0.1.0 — 2025-06-15

## README

# eslint-plugin-import-lite

[![Open on npmx.dev](https://npmx.dev/api/registry/badge/version/eslint-plugin-import-lite)](https://npmx.dev/package/eslint-plugin-import-lite)
[![Open on npmx.dev](https://npmx.dev/api/registry/badge/size/eslint-plugin-import-lite)](https://npmx.dev/package/eslint-plugin-import-lite)
[![License](https://npmx.dev/api/registry/badge/license/eslint-plugin-import-lite)](https://npmx.dev/package/eslint-plugin-import-lite)

## Feature

- Zero dependencies.
- Port some useful rules that don't require a resolver from [`eslint-plugin-import-x`](https://github.com/un-ts/eslint-plugin-import-x).
- No need for a resolver and settings like those in [`eslint-plugin-import-x`](https://github.com/un-ts/eslint-plugin-import-x).
- Drop babel and flow support.

> [!NOTE]
>
> This plugin intentionally does **NOT** include binary resolvers — but contributions are welcome if you'd like to implement resolver support!

See all rules in [`src/rules`](./src/rules)

## Available Rules

- [consistent-type-specifier-style](./src/rules/consistent-type-specifier-style/README.md)
- [exports-last](./src/rules/exports-last/README.md)
- [first](./src/rules/first/README.md)
- [newline-after-import](./src/rules/newline-after-import/README.md)
- [no-default-export](./src/rules/no-default-export/README.md)
- [no-duplicates](./src/rules/no-duplicates/README.md)
- [no-mutable-exports](./src/rules/no-mutable-exports/README.md)
- [no-named-default](./src/rules/no-named-default/README.md)
- [prefer-default-export](./src/rules/prefer-default-export/README.md)

## Motivation

I extend [my own ESLint config](https://github.com/9romise/eslint-config) from [`@antfu/eslint-config`](https://github.com/antfu/eslint-config).

Recently this config dropped [`eslint-plugin-import-x`](https://github.com/un-ts/eslint-plugin-import-x) because it introduces built-in binary resolvers and makes it heavy.

In a [discussion](https://github.com/9romise/eslint-import-resolver-oxc/issues/87#issuecomment-2945162572) about the built-in resolver, the maintainer plans to keep it as a dependency, which makes it impossible to keep the package lightweight.

But there are some useful rules and [some people (including me) want to bring the plugin back](https://github.com/antfu/eslint-config/issues/720).

## See Also

- [eslint-plugin-fast-import](https://npmx.dev/package/eslint-plugin-fast-import) - An ESLint plugin using a novel algorithm combined with the OXC Rust parser.

## Credits

- [eslint-plugin-import-x](https://github.com/un-ts/eslint-plugin-import-x) - source codes [MIT](https://github.com/un-ts/eslint-plugin-import-x/blob/master/LICENSE)
- [eslint-stylistic](https://github.com/eslint-stylistic/eslint-stylistic) - project structure and scripts [MIT](https://github.com/eslint-stylistic/eslint-stylistic/blob/main/LICENSE)

## License

[MIT](./LICENSE) License &copy; 2025-PRESENT [Vida Xie](https://github.com/9romise)

---
_Source: https://npm.io/package/eslint-plugin-import-lite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
