mirror of
https://github.com/vector-im/element-call.git
synced 2026-01-18 02:32:27 +00:00
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
/*
|
|
Copyright 2025 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
import { type KnipConfig } from "knip";
|
|
|
|
export default {
|
|
vite: {
|
|
config: ["vite.config.ts", "vite-embedded.config.ts", "vite-sdk.config.ts"],
|
|
},
|
|
entry: ["src/main.tsx", "i18next-parser.config.ts"],
|
|
ignoreBinaries: [
|
|
// This is deprecated, so Knip doesn't actually recognize it as a globally
|
|
// installed binary. TODO We should switch to Compose v2:
|
|
// https://docs.docker.com/compose/migrate/
|
|
"docker-compose",
|
|
],
|
|
ignoreDependencies: [
|
|
// Used in CSS
|
|
"normalize.css",
|
|
// Used for its global type declarations
|
|
"@types/grecaptcha",
|
|
// Because we use matrix-js-sdk as a Git dependency rather than consuming
|
|
// the proper release artifacts, and also import directly from src/, we're
|
|
// forced to re-install some of the types that it depends on even though
|
|
// these look unused to Knip
|
|
"@types/content-type",
|
|
"@types/sdp-transform",
|
|
"@types/uuid",
|
|
// We obviously use this, but if the package has been linked with yarn link,
|
|
// then Knip will flag it as a false positive
|
|
// https://github.com/webpro-nl/knip/issues/766
|
|
"@vector-im/compound-web",
|
|
// We need this so that TypeScript is happy with @livekit/track-processors.
|
|
// This might be a bug in the LiveKit repo but for now we fix it on the
|
|
// Element Call side.
|
|
"@types/dom-mediacapture-transform",
|
|
"matrix-widget-api",
|
|
],
|
|
ignoreExportsUsedInFile: true,
|
|
} satisfies KnipConfig;
|