-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.config.ts
More file actions
34 lines (32 loc) · 981 Bytes
/
knip.config.ts
File metadata and controls
34 lines (32 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { KnipConfig } from "knip";
/**
* Knip configuration.
* @see https://knip.dev/overview/configuration
*/
const knipConfig: KnipConfig = {
ignore: [
"**/generated/**",
"src/lib/config/drizzle.config.ts",
"src/scripts/**",
"src/jobs/**",
"src/lib/db/db.ts",
"src/lib/config/env.config.ts",
"src/lib/authz/**",
// Provider instances consumed at runtime by server and routes
"src/lib/providers/**",
// Instrumentation loaded via --import flag at runtime
"src/instrumentation.ts",
],
ignoreDependencies: [
// OpenTelemetry deps used by instrumentation.ts (loaded via --import)
"@opentelemetry/auto-instrumentations-node",
"@opentelemetry/exporter-logs-otlp-http",
"@opentelemetry/exporter-trace-otlp-http",
"@opentelemetry/resources",
"@opentelemetry/sdk-logs",
"@opentelemetry/sdk-node",
"@opentelemetry/semantic-conventions",
],
tags: ["-knipignore"],
};
export default knipConfig;