-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknip.config.ts
More file actions
53 lines (51 loc) · 1.55 KB
/
knip.config.ts
File metadata and controls
53 lines (51 loc) · 1.55 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
50
51
52
53
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 = {
entry: [
"src/routes/**/*.{ts,tsx}",
"src/router.tsx",
"src/lib/graphql/graphqlFetch.ts",
"src/sw.ts",
],
project: ["src/**/*.{ts,tsx,css}"],
// based on https://knip.dev/reference/plugins/graphql-codegen
"graphql-codegen": {
config: ["package.json", "src/lib/graphql/codegen.config.ts"],
},
// used for proper management of Thornberry components, see https://knip.dev/reference/configuration#ignoreexportsusedinfile
ignoreExportsUsedInFile: true,
ignore: [
"**/*.gen.*",
"**/generated/**",
"src/test/**",
"src/__tests__/**",
"**/*.test.{ts,tsx}",
// Reference patterns - unused in template but available for adoption
"src/components/profile/ManageBilling.tsx",
"src/lib/config/env.config.ts",
"src/lib/context/organization.context.tsx",
"src/lib/context/workspace.context.tsx",
"src/lib/providers/**",
"src/server/functions/authorization.ts",
"src/server/functions/entitlements.ts",
],
ignoreDependencies: [
"@changesets/changelog-github",
"@changesets/cli",
"dotenv",
"@faker-js/faker",
"@happy-dom/global-registrator",
"@testing-library/jest-dom",
"@testing-library/dom",
"@testing-library/react",
"happy-dom",
],
tags: ["-knipignore"],
};
export default knipConfig;