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

[![npm package](https://img.shields.io/npm/v/@jsenv/eslint-import-resolver.svg)](https://www.npmjs.com/package/@jsenv/eslint-import-resolver) [![build](https://travis-ci.com/jsenv/jsenv-eslint-import-resolver.svg?branch=master)](http://travis-ci.com/jsenv

  • 4.10.0
  • Source
  • npm
  • Socket score

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

jsenv-eslint-import-resolver

npm package build codecov

Make eslint import and jsenv work together

Plugin to enable jsenv module resolution inside eslint-plugin-import.

Installing

npm i --save-dev @jsenv/eslint-import-resolver

Once npm has downloaded this module on your computer, you must configure eslint import plugin to make it use this resolver.

Configuration

import/resolver must be a path to this resolver. Here is an example inside .eslintrc.js:

module.exports = {
  settings: {
    "import/resolver": {
      [`${__dirname}/node_modules/@jsenv/eslint-import-resolver/dist/commonjs/main.js`]: {
        projectFolder: __dirname, // required, used to resolve origin relative import like import '/file.js'.
      },
    },
  },
}

FAQs

Package last updated on 23 Aug 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