{"id":19530,"library":"eslint-config-import","title":"eslint-config-import","description":"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.","status":"maintenance","version":"0.13.0","language":"javascript","source_language":"en","source_url":"https://github.com/benmosher/eslint-plugin-import","tags":["javascript","eslint","eslint-config","eslint-plugin-import","import"],"install":[{"cmd":"npm install eslint-config-import","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-import","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-import","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for configs to work","package":"eslint-plugin-import","optional":false}],"imports":[{"note":"The npm package name is 'eslint-config-import', but when using extends you can omit the 'eslint-config-' prefix. However, for clarity, include the full name.","wrong":"module.exports = {\n  extends: ['import']\n};","symbol":"config","correct":"module.exports = {\n  extends: ['eslint-config-import']\n};"},{"note":"Similarly, the 'warnings' sub-config can be referenced with the scoped name.","wrong":"module.exports = {\n  extends: ['import/warnings']\n};","symbol":"warnings config","correct":"module.exports = {\n  extends: ['eslint-config-import/warnings']\n};"},{"note":"The 'es7-jsx' sub-config includes parser settings for stage 1 ES7 and JSX.","wrong":"module.exports = {\n  extends: ['import/es7-jsx']\n};","symbol":"es7-jsx config","correct":"module.exports = {\n  extends: ['eslint-config-import/es7-jsx']\n};"}],"quickstart":{"code":"// .eslintrc.js\nmodule.exports = {\n  extends: ['eslint-config-import/warnings'],\n  rules: {\n    // additional rules\n  }\n};\n\n// Ensure eslint-plugin-import is installed (peer dependency)\n// npm install --save-dev eslint-plugin-import@0.13.x","lang":"javascript","description":"This shows how to use the 'warnings' config in ESLint. Note the peer dependency version constraint."},"warnings":[{"fix":"Remove 'eslint-config-import' from extends and instead use 'plugin:import/recommended' or 'plugin:import/errors' from eslint-plugin-import.","message":"The 'eslint-config-import' package is outdated. Consider using the built-in config from eslint-plugin-import directly.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"If using the 'es7-jsx' config, ensure no other config overrides parserOptions.sourceType or ecmaFeatures.jsx.","message":"The recommended config 'import' may conflict with other configs that set parser options.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Downgrade eslint-plugin-import to 0.13.x or use eslint-plugin-import's built-in configs instead.","message":"eslint-plugin-import v2.x is not compatible with eslint-config-import v0.13.x.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use @babel/eslint-parser directly in your ESLint config, or use a more modern config.","message":"The 'es7-jsx' config sets parser: 'babel-eslint' which may be outdated; ESLint v9+ deprecated babel-eslint in favor of @babel/eslint-parser.","severity":"gotcha","affected_versions":">=9.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure eslint-plugin-import version matches the expected peer dependency (0.13.x) or upgrade to a newer config.","cause":"The config tries to apply rules that are not available in the installed version of eslint-plugin-import.","error":"ESLint: Configuration for rule 'import/no-unresolved' is invalid"},{"fix":"Run: npm install --save-dev eslint-plugin-import@0.13.x","cause":"The peer dependency eslint-plugin-import is not installed.","error":"Cannot find module 'eslint-plugin-import'"},{"fix":"Use a config that sets parserOptions.sourceType: 'module', such as 'eslint-config-import/es7-jsx' or configure your own parserOptions.","cause":"ESLint parser is not set to support ES modules; the 'import' config assumes a modern parser.","error":"Parsing error: The keyword 'import' is reserved"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}