-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Request new plugins here #483
Comments
Ladle (#268) |
Vike (#275) |
NestJS, maybe? It's very class based, so it would be focused on It would need to detect usage of class members by decorators, basically - e.g, something decorated with |
WebdriverIO (#464) |
Not sure if this is a plugin or core, but support for .mdx files. (used by Storybook and other docs generators) |
@justingrant Please file a separate issue for this (as it's not a plugin). |
Serverless framework (1 183 585 downloads a week). It uses |
Please don't dump words here. It'll be a lot more convincing if you'd be more precise and provide one or two links to the library and/or configuration pages to avoid any ambiguity. |
Yeah, absolutely sorry about that, I thought it was the method to collect people opinion as I saw similar comments above... I'm rectifying |
wrangler |
Just saying, for anyone interested, it's now more fun and easier than ever to write a plugin: https://knip.dev/guides/writing-a-plugin |
is deno compat a plugin? If so, what would it take? Deno uses the web standard import_map.json |
Would it be possible to create a Nuxt plugin? Nuxt heavily uses auto-imports, so I imagine it could be harder to trace down what is being used. |
Docusaurus - https://docusaurus.io/ |
Ionic (#604) |
Plugins added recently:
|
Expo (expo.dev) |
|
For everyone interested in support for Expo, please see #126. Looking for feedback! |
lockfile linting
https://github.com/lirantal/lockfile-lint |
I guess a file-based configuration for the lockfile-lint package potentially leaves e.g. (For completeness sake: the act of linting lockfiles is outside the scope of Knip, and apparently there's a package that does exactly that.) |
Correct. That was the reason for creating this suggestion.
Also correct. It's just an configuration file. It references no other dependencies/extension/extends/plugins/etc...
Yes, adding it to the
Lockfile-linting uses https://github.com/cosmiconfig/cosmiconfig (v8) for their config file, as do many other tooling. Maybe these config files can be ignored by default somehow. Sadly, custom local plugins are not on the roadmap. But the Keep up the great work! 🇳🇱 |
Knip v5.21.0 contains a few new plugins: Especially the latter is a bit rudimentary, feel free to open issues if you have any! |
I'd like to request support for rspack. Since rspack's configuration is roughly equivalent to webpack's configuration, it's possible that the webpack plugin could either be cloned or just tweaked to accommodate rspack instead. I actually tried just changing the So, I think it's possible that the webpack plugin could simply be adjusted to:
|
Similar to rspack, I'd like plugin support for rsbuild: |
Since some of you have requested plugins for React Cosmos and Rspack, let's make it happen. Would be great if you could share and show some support with a one-time sponsorship? 🙏 I can work on the 2 plugins in the coming weekend. Rsbuild should have lower threshold after that. |
@birchill has just made a one time sponsorship to see this happen. Hopefully others can join in too! |
@STORIS does its sponsorships as recurring monthly rather than one-time. A monthly recurring contribution through open collective has been added, although there's no condition for that with respect to the plugin request. |
@birtles @birchill @shawnmcknight @STORIS Thank you so much! Truly appreciated. |
Added plugins:
Not yet GA. Can be tested with Please file bugs in new GitHub issues. |
Works great for me. Thank you! |
Makefile: lint:
npx eslint Should mark |
@webpro I know this was already requested, but are there plans to add a Nuxt plugin? |
Re. Nuxt plugin: Usually "auto-imports" might be hard to track indeed during static or even dynamic analysis. In general not doing much of new features myself at the moment. Sponsored might be an option (DM me). Open to pull requests! |
Thank you for your reply! |
|
Added a few plugins in v5.28.0: NOTE: the Nuxt plugin has no support for auto-import magic, except for |
package.json:
should not throw |
tsx. Currently
is not detected.
|
Does |
Getting some false positives for type exports. unimported used to have an option to remove flow types and I wonder if that's needed or I need to add any additional configuration to detect unused flow types? Thanks! |
Maybe this specific issue isn't in scope for a Prisma plugin, but my "prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
}, |
Please add one comment per plugin (please link to website/repo/docs), which others can then upvote using reactions like 👍 (not more comments).
The idea is that you can request/upvote plugins here. Contributors/me can implement them.
Please make sure the plugin isn't already available/listed on https://knip.dev/reference/plugins
The text was updated successfully, but these errors were encountered: