-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathknip.config.ts
More file actions
49 lines (47 loc) · 1.32 KB
/
knip.config.ts
File metadata and controls
49 lines (47 loc) · 1.32 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import type { KnipConfig } from "knip";
/**
* Knip configuration.
* @see https://knip.dev/overview/configuration
*
* NOTE: Many lib files are intentionally unused in the template.
* They serve as reference patterns for Omni products to adopt.
*/
const knipConfig: KnipConfig = {
ignore: [
"**/generated/**",
"src/lib/config/drizzle.config.ts",
"src/scripts/**",
"src/lib/db/db.ts",
"src/lib/config/env.config.ts",
"src/test/**",
"src/__tests__/**",
// Reference patterns - unused in template but available for adoption
"src/lib/auth/**",
"src/lib/cache/**",
"src/lib/crypto/**",
"src/lib/db/scoped.ts",
"src/lib/db/createDbClient.ts",
"src/lib/db/dbClient.ts",
"src/lib/db/pgClient.ts",
"src/lib/idp/**",
"src/lib/logging/**",
"src/lib/middleware/**",
"src/lib/providers/**",
],
ignoreDependencies: [
// GitHub dependency not resolvable by knip
"@omnidotdev/providers",
"@changesets/changelog-github",
"@changesets/cli",
"drizzle-kit",
// TODO switch to testcontainers (unstable behavior with Bun/Docker), then remove below
"@testcontainers/postgresql",
"testcontainers",
"@faker-js/faker",
],
ignoreBinaries: [
"tsc", // Bun provides TypeScript compilation
],
tags: ["-knipignore"],
};
export default knipConfig;