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

eslint-import-resolver-jsconfig

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-import-resolver-jsconfig

Resolver for eslint-plugin-import to import alias from jsconfig paths

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.7K
increased by25.62%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-import-resolver-jsconfig

This is resolver for eslint-plugin-import, which can import your alias from paths in your jsconfig file.

jsconfig example

I personally use it for easy eslint alias support with create-react-app and react-app-rewired + react-app-rewire-alias.

Installation

npm install eslint-import-resolver-jsconfig --save-dev

Usage

Pass this resolver and jsonconfig name to eslint-plugin-import using your eslint config file

// .eslintrc.json

"settings": {
    "import/resolver": {
        "jsconfig": {
            "config": "jsconfig.json"
        }
    }
}

If it is necessary, pass array of extensions. Defaults are js and jsx.

"jsconfig": {
    "config": "jsconfig.json",
    "extensions": [".js", ".jsx"]
}

Special thanks

eslint-import-resolver-webpack

eslint-import-resolver-custom-alias

Keywords

FAQs

Package last updated on 03 Aug 2021

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