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

@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

importMap resolution for eslint

  • 6.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
78
decreased by-89.63%
Maintainers
2
Weekly downloads
 
Created
Source

jsenv-eslint-import-resolver

github package npm package github ci codecov coverage

importMap resolution for eslint.

Table of contents

Presentation

@jsenv/eslint-import-resolver enables importMap resolution for eslint.

— see importMap spec on github

Installation

Follow the steps below to install @jsenv/eslint-import-resolver in your project.

Step 1 - Install eslint plugin import package

npm install --save-dev eslint-plugin-import@2.18.2

— see eslint-plugin-import on github

Step 2 - Install jsenv import resolver package

If you never installed a jsenv package, read Installing a jsenv package before going further.

This documentation is up-to-date with a specific version so prefer any of the following commands

npm install --save-dev @jsenv/eslint-import-resolver@5.1.0
yarn add --dev @jsenv/eslint-import-resolver@5.1.0

Step 3 - Configure eslint

  • Your eslint config must enable eslint-plugin-import
  • Your eslint config must use @jsenv/eslint-import-resolver resolver

It means your minimal .eslintrc.js file looks like this:

module.exports = {
  plugins: ["import"],
  settings: {
    "import/resolver": {
      [`${__dirname}/node_modules/@jsenv/eslint-import-resolver/dist/commonjs/main.js`]: {
        projectFolder: __dirname,
        importMapRelativePath: "/importMap.json",
      },
    },
  },
}

FAQs

Package last updated on 23 Oct 2019

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