1.2.0 • Published 2 years ago

eslint-import-resolver-workspaces v1.2.0

Weekly downloads
1,231
License
MIT
Repository
github
Last release
2 years ago

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.

1.2.0

2 years ago

1.1.0

2 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago