Skip to content

Commit 8a70d6e

Browse files
committed
chore: clean up knip config + prune unused code
1 parent e27828b commit 8a70d6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+38
-213
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ jobs:
139139
run: pnpm install
140140

141141
- name: 🔍 Check for unused code
142-
run: pnpm knip:production
142+
run: pnpm knip

app/composables/useAtproto.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { UserSession } from '#shared/schemas/userSession'
22

3-
/** @public */
43
export function useAtproto() {
54
const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session')
65

app/composables/useCachedFetch.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import type { CachedFetchResult } from '#shared/utils/fetch-cache-config'
2727
* )
2828
* }
2929
* ```
30-
* @public
3130
*/
3231
export function useCachedFetch(): CachedFetchFunction {
3332
// On client, return a function that just uses $fetch (no caching, not stale)

app/composables/useCharts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ function getNpmPackageCreationDate(packument: PackumentLikeForTime): string | nu
286286
return versionDates[0] ?? null
287287
}
288288

289-
/** @public */
290289
export function useCharts() {
291290
function resolveDateRange(
292291
downloadEvolutionOptions: PackageDownloadEvolutionOptions,

app/composables/useConnector.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ interface StateResponse {
5555
const STORAGE_KEY = 'npmx-connector'
5656
const DEFAULT_PORT = 31415
5757

58-
/** @public */
5958
export const useConnector = createSharedComposable(function useConnector() {
6059
// Persisted connection config
6160
const config = useState<{ token: string; port: number } | null>('connector-config', () => null)

app/composables/useFacetSelection.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { useRouteQuery } from '@vueuse/router'
55
/**
66
* Composable for managing comparison facet selection with URL sync.
77
*
8-
* @public
98
* @param queryParam - The URL query parameter name to use (default: 'facets')
109
*/
1110
export function useFacetSelection(queryParam = 'facets') {

app/composables/useFileTreeState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/** @public */
21
export function useFileTreeState(baseUrl: string) {
32
const stateKey = computed(() => `npmx-file-tree${baseUrl}`)
43

app/composables/useI18nStatus.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { I18nStatus, I18nLocaleStatus } from '#shared/types'
33
/**
44
* Composable for accessing translation status data from Lunaria.
55
* Provides information about translation progress for each locale.
6-
* @public
76
*/
87
export function useI18nStatus() {
98
const { locale } = useI18n()

app/composables/useInstallCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { JsrPackageInfo } from '#shared/types/jsr'
33
/**
44
* Composable for generating install commands with support for
55
* multiple package managers, @types packages, and JSR.
6-
* @public
76
*/
87
export function useInstallCommand(
98
packageName: MaybeRefOrGetter<string | null>,

app/composables/useIsMobile.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Uses the same breakpoint as Tailwind's `md:` (768px).
44
*
55
* Returns `false` during SSR to avoid hydration mismatches.
6-
* @public
76
*/
87
export function useIsMobile() {
98
return useMediaQuery('(max-width: 767px)')

0 commit comments

Comments
 (0)