{"id":19664,"library":"eslint-import-resolver-jsconfig","title":"eslint-import-resolver-jsconfig","description":"Resolver for eslint-plugin-import that resolves import aliases defined in jsconfig.json. Version 1.1.0 is current; the package is stable and updated irregularly. It enables ESLint to understand path aliases in jsconfig (common in Create React App projects) without Webpack configuration. Unlike eslint-import-resolver-webpack or eslint-import-resolver-alias, this resolver directly reads jsconfig.json and is lightweight with no heavy dependencies.","status":"active","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/idonotknowwhoiam/eslint-import-resolver-jsconfig","tags":["javascript","eslint-import-resolver","eslint-import-plugin","alias","resolver","jsconfig","create-react-app","cra"],"install":[{"cmd":"npm install eslint-import-resolver-jsconfig","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-import-resolver-jsconfig","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-import-resolver-jsconfig","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for resolver functionality","package":"eslint-plugin-import","optional":false},{"reason":"Used for logging resolver activity","package":"debug","optional":false},{"reason":"Used to resolve module paths","package":"resolve","optional":false}],"imports":[{"note":"The resolver key in settings should be 'jsconfig', not the package name. Configure in .eslintrc or eslint config.","wrong":"settings: { 'import/resolver': { 'eslint-import-resolver-jsconfig': { config: 'jsconfig.json' } } }","symbol":"jsconfig resolver","correct":"settings: { 'import/resolver': { jsconfig: { config: 'jsconfig.json' } } }"},{"note":"Specify file extensions for the resolver to check when resolving modules. Defaults to '.js' and '.jsx'.","symbol":"extensions option","correct":"settings: { 'import/resolver': { jsconfig: { extensions: ['.js', '.jsx', '.ts', '.tsx'] } } }"}],"quickstart":{"code":"// Install: npm install eslint-import-resolver-jsconfig --save-dev\n// .eslintrc.js\nmodule.exports = {\n  settings: {\n    'import/resolver': {\n      jsconfig: {\n        config: 'jsconfig.json',\n      },\n    },\n  },\n  rules: {\n    'import/no-unresolved': 'error',\n  },\n};","lang":"javascript","description":"Configures ESLint to resolve aliases from jsconfig.json, enabling import/no-unresolved to understand path aliases."},"warnings":[{"fix":"Use 'jsconfig' as the key in settings.import/resolver.","message":"The resolver key in settings must be 'jsconfig', not the full package name. Common mistake: using 'eslint-import-resolver-jsconfig' as key.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Ensure jsconfig.json exists and path is correct (default: './jsconfig.json').","message":"Requires jsconfig.json to be present and valid. If config path is wrong or file missing, resolver fails silently.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consider alternative resolvers like eslint-import-resolver-typescript or eslint-import-resolver-alias if compatibility issues arise.","message":"Package has not been updated since 2020; may not support newer ESLint or eslint-plugin-import versions.","severity":"deprecated","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install eslint-import-resolver-jsconfig --save-dev'.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'eslint-import-resolver-jsconfig'"},{"fix":"Check that jsconfig.json includes 'compilerOptions.paths' with the alias mapping, and that the resolver settings key is 'jsconfig'.","cause":"Alias not defined in jsconfig.json or resolver not configured properly.","error":"Error: Unable to resolve path to module 'components/Button'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}