Socket
Socket
Sign inDemoInstall

@jsenv/eslint-import-resolver

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

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
Weekly downloads
830
increased by13.7%
Maintainers
2
Weekly downloads
 
Created
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

Package last updated on 12 Aug 2024

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