Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
eslint-import-resolver-babel-module
Advanced tools
Readme
A babel-plugin-module-resolver resolver for eslint-plugin-import
npm install --save-dev eslint-plugin-import eslint-import-resolver-babel-module
Inside your .eslintrc
file, pass this resolver to eslint-plugin-import
:
"settings": {
"import/resolver": {
"babel-module": {}
}
}
And see babel-plugin-module-resolver to know how to configure your aliases.
{
"extends": "airbnb",
"rules": {
"comma-dangle": 0
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
}
Some babel plugins like babel-plugin-import-directory or babel-plugin-wildcard allow to import directories (i.e. each file inside a directory) as an object. In order to support this, you can activate the allowExistingDirectories
option as follows:
"settings": {
"import/resolver": {
"babel-module": { allowExistingDirectories: true }
}
}
Now when you import a directory like this, the ESLint plugin won't complain and recognize the existing directory:
import * as Items from './dir';
MIT, see LICENSE.md for details.
FAQs
babel-plugin-module-resolver resolver for eslint-plugin-import
The npm package eslint-import-resolver-babel-module receives a total of 218,046 weekly downloads. As such, eslint-import-resolver-babel-module popularity was classified as popular.
We found that eslint-import-resolver-babel-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.