-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathknip.jsonc
57 lines (53 loc) · 1.29 KB
/
knip.jsonc
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
54
55
56
57
{
// use jsonc to allow comments
"$schema": "https://unpkg.com/knip@5/schema-jsonc.json",
"workspaces": {
".": {
"entry": [
"app/ts/addressBookRender.ts",
"app/ts/background-startup.ts",
"app/ts/backgroundServiceWorker.ts",
"app/ts/changeChain.ts",
"app/ts/confirmTransaction.ts",
"app/ts/interceptorAccess.ts",
"app/ts/popup.ts",
"app/ts/settingsView.ts",
"app/ts/components/pages/WebsiteAccess.tsx",
"test/run-all.ts",
"test/tests/*.ts",
],
"project": ["app/ts/**/*.{ts,tsx}", "test/**/*.{ts,tsx}"],
"ignoreDependencies": [
// cleanup and lint scripts should not be flagged unlisted dependencies
"knip",
"@biomejs/biome",
// transformed vendor imports could not be determined by depcheck
"@types/firefox-webext-browser",
"@noble/curves",
"@noble/hashes"
]
},
// isolate ./build as workspace with it's own package.json
"build/*": {
"entry": [
"vendor.mts",
"bundler.mts"
],
"project": ["**/*.{ts,tsx}"]
}
},
// toggle for all applied rules
"rules": {
"classMembers": "off",
"dependencies": "off",
"duplicates": "off",
"enumMembers": "off",
"exports": "warn",
"files": "off",
"nsExports": "off",
"nsTypes": "off",
"types": "off",
"unlisted": "off",
"unresolved": "off"
}
}