Skip to content
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

Support local custom plugin #641

Closed
zhanzizhen opened this issue May 16, 2024 · 2 comments
Closed

Support local custom plugin #641

zhanzizhen opened this issue May 16, 2024 · 2 comments
Labels
feature request Feature request

Comments

@zhanzizhen
Copy link

zhanzizhen commented May 16, 2024

Is there no other more convenient way except for submitting the code to the Knip repository to create a new plugin (which may be very time-consuming)?
It would be convenient if knip could support local plugins like:

// knip.config.js
{
  "my-plugin": {
      title:xxx,
      enablers: xxx,
      isEnabled: xxx,
      config:xxx,
      resolveConfig: xxx
  },
}
@zhanzizhen zhanzizhen added the feature request Feature request label May 16, 2024
@webpro
Copy link
Collaborator

webpro commented May 18, 2024

Unfortunately, there is not. Sorry to hear building new plugins for Knip is time-consuming for you. Supporting this means it'll be more time-consuming for me, and I currently don't fancy this idea.

@webpro webpro closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
@FelipePhilippCbh
Copy link

An use case: I have a few private libraries which are used across my work and would be great to have a way to add a local plugin to it. Currently the workaround is to either ignore files or add a @public comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants