by import-js · eslint-plugin-import
Checks that imports resolve, named imports exist and nothing is exported twice.
pnpm add -D eslint eslint-plugin-import// eslint.config.js
import importPlugin from "eslint-plugin-import";
export default [
importPlugin.flatConfigs.recommended,
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| import/default | error | In ESLint, Oxlint, Biome | 110.1M | +49.1% |
| import/namespace | error | In ESLint, Oxlint, Biome | 110.1M | +49.1% |
| import/no-duplicates | warn | In ESLint, Oxlint | 97.8M | +31.1% |
| import/export | error | In ESLint, Oxlint | 93.1M | +29.4% |
| import/no-named-as-default | warn | In ESLint, Oxlint | 92.4M | +31.2% |
| import/no-named-as-default-member | warn | In ESLint, Oxlint | 92.4M | +31.2% |
| import/named | error | In ESLint, Oxlint, Biome | 90M | +30.0% |
| import/no-unresolved | error | In ESLint | 90M | +30.0% |