eslint-plugin-esm-import
JSON →ESLint plugin (v1.0.1, 2025) enforcing explicit .js extensions in local imports, aiding migration from CommonJS to ESM. Supports ESLint v9 with flat config and leverages existing import resolvers (node, webpack, typescript) to handle alias-based imports. Configurable ignored extensions and index file patterns, with --fix auto-correction. A more powerful alternative to eslint-plugin-require-extensions, supporting resolver aliases (e.g., webpack resolve.alias, tsconfig paths).
Resources
packageeslint-plugin-esm-import ↗