> [!WARNING] > > WIP > > This plugin is still newly born and willing to accept useful import-related rules. > > Feel free to open an issue to share your ideas!
npm install eslint-plugin-import-lite> [!WARNING]
>
> WIP
>
> This plugin is still newly born and willing to accept useful import-related rules.
>
> Feel free to open an issue to share your ideas!
[![npm version][npm-version-src]][npm-version-href]
[![npm bundle size][npm-bundle-size-src]][npm-bundle-size-href]
[![License][license-src]][license-href]
- Zero dependencies.
- Port some useful rules that don’t require a resolver from eslint-plugin-import-x.
- No need for a resolver and settings like those in eslint-plugin-import-x.
- Drop babel and flow support.
See all rules in src/rules
- consistent-type-specifier-style
- exports-last
- first
- newline-after-import
- no-default-export
- no-duplicates
- no-mutable-exports
- no-named-default
- prefer-default-export
I extend my own ESLint config from @antfu/eslint-config.
Recently this config dropped eslint-plugin-import-x cause it introduce some binary packages and make it heavy.
In a discussion) about built-in resolver, the maintainer plan to keep it as dependency, which makes it impossible to lightweight the package.
But there are some useful rules and some people (include me) want to bring the plugin back.
- eslint-plugin-import-x - source codes MIT
- eslint-stylistic - project structure and scripts MIT
MIT License © 2025-PRESENT Vida Xie
[npm-version-src]: https://img.shields.io/npm/v/eslint-plugin-import-lite?color=00a3e0
[npm-version-href]: https://npmjs.com/package/eslint-plugin-import-lite
[npm-bundle-size-src]: https://img.shields.io/npm/unpacked-size/eslint-plugin-import-lite?color=00a3e0
[npm-bundle-size-href]: https://npmjs.com/package/eslint-plugin-import-lite
[license-src]: https://img.shields.io/npm/l/eslint-plugin-import-lite?color=00a3e0
[license-href]: https://opensource.org/licenses/MIT