Skip to content

no-extraneous-dependencies should allow specific whitelist #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Zamiell opened this issue Aug 31, 2024 · 0 comments · Fixed by #142
Closed

no-extraneous-dependencies should allow specific whitelist #141

Zamiell opened this issue Aug 31, 2024 · 0 comments · Fixed by #142

Comments

@Zamiell
Copy link

Zamiell commented Aug 31, 2024

In some situations, packages are located at the monorepo root instead of in the closest "package.json" file.
In these situations, it would be useful to configure the "no-extraneous-dependencies" rule to have a whitelist of packages to not error on.

e.g.

  {
    rules: {
      "import-x/no-extraneous-dependencies": ["error", { whitelist: ["foo"] } ],
    },
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant