Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-import-resolver-babel-module

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-import-resolver-babel-module

babel-plugin-module-resolver resolver for eslint-plugin-import

  • 5.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is eslint-import-resolver-babel-module?

The eslint-import-resolver-babel-module package is an ESLint plugin that allows you to resolve import paths using Babel's module resolver. This is particularly useful for projects that use Babel to transform module paths, as it ensures that ESLint can correctly resolve and lint these paths.

What are eslint-import-resolver-babel-module's main functionalities?

Custom Module Resolution

This feature allows you to configure ESLint to use Babel's module resolver for resolving import paths. This ensures that ESLint can correctly resolve paths that are transformed by Babel.

{
  "settings": {
    "import/resolver": {
      "babel-module": {}
    }
  }
}

Alias Configuration

This feature allows you to define custom aliases for module paths. This is useful for simplifying import statements and making your codebase more maintainable.

{
  "settings": {
    "import/resolver": {
      "babel-module": {
        "alias": {
          "@components": "./src/components",
          "@utils": "./src/utils"
        }
      }
    }
  }
}

Custom Extensions

This feature allows you to specify custom file extensions that should be resolved by Babel's module resolver. This is useful for projects that use multiple file types, such as JavaScript and TypeScript.

{
  "settings": {
    "import/resolver": {
      "babel-module": {
        "extensions": [".js", ".jsx", ".ts", ".tsx"]
      }
    }
  }
}

Other packages similar to eslint-import-resolver-babel-module

Keywords

FAQs

Package last updated on 16 Jan 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc