A resolver for eslint-plugin-import that works with babel-plugin-root-import to allow root-based module imports (e.g., importing from a root directory using a pattern). The current stable version is 1.0.0, released as a major update. This package is a thin wrapper around babel-plugin-root-import, providing an eslint resolver that understands the same root-import syntax. It has no active development. The key differentiator is enabling eslint-plugin-import to resolve modules using the babel-root-import plugin's custom prefix/suffix mappings.
npm install eslint-import-resolver-babel-root-importVerified import paths — ran on the pinned version, not inferred.
This shows how to configure eslint-plugin-import to use the babel-root-import resolver and install the necessary dependencies.
Update your .eslintrc to use the shorthand 'babel-root-import' instead of the full package name.
Ensure you are using the most up-to-date version of babel-plugin-root-import.
Install both packages and configure babel-plugin-root-import in your Babel config.
Check compatibility with your eslint-plugin-import version; consider using the built-in eslint-import-resolver-node or eslint-import-resolver-alias.
Use a more robust resolver like eslint-import-resolver-alias if you need extensive support.
Run `npm install --save-dev eslint-import-resolver-babel-root-import` and use 'babel-root-import' in settings.
Configure both the resolver in .eslintrc and the plugin in your Babel config with same settings.
Check that you have the correct version (v1.0.0) and that babel-plugin-root-import is installed.