Skip to content

Commit 51f0787

Browse files
authored
Added knip (#1033)
* Added knip and a workspace configuration, resolved the issue or ignored non-issue/false-positives * Drop typesVersions from all package.json. Be more precise about TypeScript's module version
1 parent d25fc95 commit 51f0787

File tree

20 files changed

+746
-258
lines changed

20 files changed

+746
-258
lines changed

knip.json

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"workspaces": {
4+
".": {
5+
"entry": ["scripts/clean.ts", "scripts/helper.ts"]
6+
},
7+
"packages/vscode-ws-jsonrpc": {
8+
"entry": ["src/server/index.ts", "src/socket/index.ts", "src/index.ts"]
9+
},
10+
"packages/client": {
11+
"entry": [
12+
"src/vscode/index.ts",
13+
"src/worker/index.ts",
14+
"src/debugger/index.ts",
15+
"src/fs/index.ts",
16+
"src/editorApp/index.ts",
17+
"src/common/index.ts",
18+
"src/wrapper/index.ts",
19+
"src/index.ts",
20+
"src/vscode/locales.ts"
21+
]
22+
},
23+
"packages/wrapper-react": {
24+
"entry": ["src/index.tsx"]
25+
},
26+
"packages/examples": {
27+
"entry": [
28+
"src/index.ts",
29+
"src/appPlayground/launcher.ts",
30+
"src/appPlayground/main.ts",
31+
"src/appPlayground/reactLauncher.ts",
32+
"src/appPlayground/reactMain.tsx",
33+
"src/browser/main.ts",
34+
"src/clangd/client/main.ts",
35+
"src/debugger/server/debugServer.ts",
36+
"src/eclipse.jdt.ls/client/main.ts",
37+
"src/groovy/client/main.ts",
38+
"src/json/client/classic.ts",
39+
"src/json/client/config.ts",
40+
"src/json/client/extended.ts",
41+
"src/json/server/json-server.ts",
42+
"src/langium/langium-dsl/main.ts",
43+
"src/langium/langium-dsl/config/langium.monarch.ts",
44+
"src/langium/statemachine/launcher.ts",
45+
"src/langium/statemachine/main-react.tsx",
46+
"src/langium/statemachine/main.ts",
47+
"src/multi/twoLanguageClients.ts",
48+
"src/node.ts",
49+
"src/python/client/main.ts",
50+
"src/python/client/reactPython.tsx",
51+
"src/ts/clientTs.ts"
52+
]
53+
}
54+
},
55+
"ignoreFiles": ["verify/**"],
56+
"ignoreIssues": {
57+
"packages/examples/src/langium/statemachine/ls/generated/**": [
58+
"exports",
59+
"types"
60+
],
61+
"packages/examples/resources/**": ["exports", "types"]
62+
},
63+
"ignoreBinaries": ["playwright"],
64+
"ignoreDependencies": ["pyright", "@types/emscripten"]
65+
}

0 commit comments

Comments
 (0)