You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-import-resolver-workspaces

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-import-resolver-workspaces

A resolver plugin for [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import) that resolves yarn workspaces packages to their source code so that local development doesn't require rebuilding dependent packages on each change.

1.2.0
latest
Source
npmnpm
Version published
Maintainers
4
Created
Source

eslint-import-resolver-workspaces

A resolver plugin for eslint-plugin-import that resolves yarn workspaces packages to their source code so that local development doesn't require rebuilding dependent packages on each change.

// .eslintrc
{
  "settings": {
    "workspaces": {
      "extensions": [".mjs", ".js", ".ts", ".tsx", ".json"],
      "sources": {
        "my-package/lib/*": ["packages/my-package/src/*"]
      }
    }
  }
}

The sources option follows the typescript paths format for rewriting file paths.

You can also specify sources in your root package.json under workspace-sources.

FAQs

Package last updated on 10 Aug 2022

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