-
-
Notifications
You must be signed in to change notification settings - Fork 202
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 |
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"
}, |
You might scan for |
Friendly reminder to everyone that it's cool to implement plugins and submit pull requests ❤️ |
React Router v7 — getting false positives after upgrading from Remix |
Went through the list, this seems the be the status: ✅ DONE
❌ NOT DONE/STATUS UNKNOWN
Note that existing plugins may be imperfect and incomplete. Going to close this issue, since it appears we're not getting much out of it. Regular issues and PRs are fine actually. Feel free to open pull requests to add new plugins! Thanks for your input and contributions! ❤️ |
I created temperary solution for react router 7 before a plugin is created: import type { RouteConfigEntry } from "@react-router/dev/routes";
import { KnipConfig } from "knip";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
const __dirname = path.dirname(__filename); // get the name of the directory
const appDir = __dirname + "/app";
globalThis.__reactRouterAppDirectory = appDir;
const routes = await import("./app/routes");
const routeConfig = await routes.default;
const mapRoute = (route: RouteConfigEntry): string[] => {
return [`app/${route.file}`, ...(route.children ? route.children.flatMap(mapRoute) : [])];
};
const routeEntryFiles = routeConfig.flatMap(mapRoute);
export default {
entry: [
...routeEntryFiles,
"public/sw.js",
"server.mjs",
"app/root.tsx",
"app/entry.client.tsx",
"app/entry.server.tsx",
"react-router.config.ts",
],
} satisfies KnipConfig; |
MeteorJS. Thanks. |
SASS/SCSS. Thanks. |
This ticket is closed, I'll remove the remaining links to this ticket from the docs. |
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: