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
Weekly downloads
593
increased by40.19%
Maintainers
2
Created
Weekly downloads
 

Changelog

Source

30.4.0

  • @jsenv/core
    • Dev server properly invalidate cache of files that are not watched
    • browser version now read from playwright after first run
    • Rename globals injected into service worker during build from serviceWorkerUrls to resourcesFromJsenvBuild
    • Fix dev server crach during url inference on circular dependency
    • Add cacheControl param to dev server (can be used to disable cache control headers on dev server)
  • @jsenv/pwa
    • Move into this monorepo
    • Split @jsenv/pwa into @jsenv/pwa + @jsenv/service-worker
    • Write automated tests around service worker and build
    • @jsenv/pwa full revamp of service worker part
  • @jsenv/eslint-import-resolver
    • improve logs when resolution fails
  • @jsenv/sigi
    • add this new package in the monorepo

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 16 Nov 2022

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