From e7e68a43809f7a2b31aa6813a8f2b8b0b4afe0d2 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Sun, 22 Feb 2026 22:47:44 -0500 Subject: [PATCH] chore: remove unnecessary @public annotations and guidelines knip supports this now; this is outdated information --- CONTRIBUTING.md | 12 ------------ app/composables/useActiveTocItem.ts | 1 - app/composables/useMarkdown.ts | 1 - server/utils/provenance.ts | 1 - server/utils/skills.ts | 3 --- shared/schemas/blog.ts | 1 - shared/schemas/user.ts | 2 -- shared/types/npm-registry.ts | 1 - shared/utils/constants.ts | 2 -- shared/utils/npm.ts | 1 - 10 files changed, 25 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e0c605e40..9020552d0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -289,18 +289,6 @@ import { hasProtocol } from 'ufo' | Constants | SCREAMING_SNAKE_CASE | `NPM_REGISTRY`, `ALLOWED_TAGS` | | Types/Interfaces | PascalCase | `NpmSearchResponse` | -> [!TIP] -> Exports in `app/composables/`, `app/utils/`, and `server/utils/` are auto-imported by Nuxt. To prevent [knip](https://knip.dev/) from flagging them as unused, add a `@public` JSDoc annotation: -> -> ```typescript -> /** -> * @public -> */ -> export function myAutoImportedFunction() { -> // ... -> } -> ``` - ### Vue components - Use Composition API with `