Socket
Socket
Sign inDemoInstall

@jsenv/importmap-eslint-resolver

Package Overview
Dependencies
2
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @jsenv/importmap-eslint-resolver

importmap resolution for eslint


Version published
Weekly downloads
86
increased by1.18%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

importmap eslint resolver

github package npm package github ci codecov coverage

importmap resolution for eslint.

Table of contents

Presentation

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

— see importmap spec on github

Installation

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

Step 1 - Install eslint-plugin-import

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

— see eslint-plugin-import on github

Step 2 - Install importmap-eslint-resolver

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/importmap-eslint-resolver@1.0.0
yarn add --dev @jsenv/importmap-eslint-resolver@1.0.0

Step 3 - Configure eslint

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

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

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

FAQs

Last updated on 16 Dec 2019

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc