Pre-fabricated ESLint shareable configs for eslint-plugin-import. Current stable version is 0.13.0, but the plugin itself is now at v2.32.0. This package provides three configs: 'import' (basic rules), 'import/warnings' (common mistakes), and 'import/es7-jsx' (ES7/JSX). It is a sibling package that depends on eslint-plugin-import 0.13.x. Note that the plugin has evolved significantly since then; usage with modern ESLint and TypeScript is best handled via the plugin's built-in configs or flat config. Rarely updated; consider using eslint-plugin-import directly.
npm install eslint-config-importVerified import paths — ran on the pinned version, not inferred.
This shows how to use the 'warnings' config in ESLint. Note the peer dependency version constraint.
Remove 'eslint-config-import' from extends and instead use 'plugin:import/recommended' or 'plugin:import/errors' from eslint-plugin-import.
If using the 'es7-jsx' config, ensure no other config overrides parserOptions.sourceType or ecmaFeatures.jsx.
Downgrade eslint-plugin-import to 0.13.x or use eslint-plugin-import's built-in configs instead.
Use @babel/eslint-parser directly in your ESLint config, or use a more modern config.
Ensure eslint-plugin-import version matches the expected peer dependency (0.13.x) or upgrade to a newer config.
Run: npm install --save-dev eslint-plugin-import@0.13.x
Use a config that sets parserOptions.sourceType: 'module', such as 'eslint-config-import/es7-jsx' or configure your own parserOptions.