Socket
Socket
Sign inDemoInstall

@jsenv/eslint-import-resolver

Package Overview
Dependencies
6
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jsenv/eslint-import-resolver

Implement Node.js import resolution algorithm for ESLint.


Version published
Maintainers
2
Created

Readme

Source

@jsenv/eslint-import-resolver npm package

Implement Node.js import resolution algorithm for ESLint.

Usage

This section shows how to create a very basic ESLint configuration doing the following:

  1. Enable eslint-plugin-import
  2. Enable import/no-unresolved
  3. Configure import/resolver with @jsenv/eslint-import-resolver
npm install --save-dev eslint-plugin-import
npm install --save-dev @jsenv/eslint-import-resolver
// .eslintrc.cjs
module.exports = {
  plugins: ["import"],
  rules: {
    "import/no-unresolved": ["error"],
  },
  settings: {
    "import/resolver": {
      "@jsenv/eslint-import-resolver": {
        rootDirectoryUrl: __dirname,
        packageConditions: ["browser", "import"],
      },
    },
  },
}

See also https://github.com/jsenv/eslint-config#advanced-configuration-example

FAQs

Last updated on 23 Mar 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc