Skip to content

Commit 06f27f1

Browse files
committed
Simplify TS configuration
1 parent b0cc8a9 commit 06f27f1

File tree

4 files changed

+15
-67
lines changed

4 files changed

+15
-67
lines changed

frontend/package-lock.json

Lines changed: 7 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"wasm:watch-dev": "cargo watch --postpone --watch-when-idle --workdir=wrapper --shell \"wasm-pack build . --dev --target=web -- --color=always\"",
2727
"wasm:watch-production": "cargo watch --postpone --watch-when-idle --workdir=wrapper --shell \"wasm-pack build . --release --target=web -- --color=always\""
2828
},
29-
"//": "NOTE: `source-sans-pro` is never to be upgraded to 3.x because that renders a pixel above its intended position.",
29+
"//": "NOTE: `source-sans-pro` is never to be upgraded to 3.x because that renders 1px above its intended position.",
3030
"dependencies": {
3131
"idb-keyval": "^6.2.2",
3232
"source-code-pro": "2.42.0",
@@ -40,6 +40,7 @@
4040
"@types/node": "^25.5.0",
4141
"buffer": "^6.0.3",
4242
"concurrently": "^9.2.1",
43+
"eslint": "^9.39.2",
4344
"eslint-import-resolver-typescript": "^4.4.4",
4445
"eslint-plugin-import": "^2.32.0",
4546
"eslint-plugin-prettier": "^5.5.5",

frontend/tsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44
"module": "ESNext",
55
"moduleResolution": "bundler",
66
"strict": true,
7-
"importHelpers": true,
87
"skipLibCheck": true,
9-
"esModuleInterop": true,
10-
"allowSyntheticDefaultImports": true,
118
"verbatimModuleSyntax": true,
129
"sourceMap": true,
13-
"types": ["node", "svelte", "svelte/store", "svelte/motion", "svelte/transition", "svelte/animate", "svelte/easing"],
10+
"types": ["node"],
1411
"baseUrl": ".",
1512
"paths": { "/*": ["./*"] },
16-
"lib": ["ESNext", "DOM", "DOM.Iterable", "ScriptHost"]
13+
"lib": ["ESNext", "DOM", "DOM.Iterable"]
1714
},
1815
"include": ["src/**/*.ts", "src/**/*.svelte", "*.ts"],
1916
"ts-node": {

website/tsconfig.json

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"module": "ESNext",
5-
"moduleResolution": "node",
4+
"module": "Node16",
5+
"moduleResolution": "node16",
66
"strict": true,
77
"allowJs": true,
88
"checkJs": true,
99
"noEmit": true,
10-
"importHelpers": true,
11-
"experimentalDecorators": true,
1210
"skipLibCheck": true,
13-
"esModuleInterop": true,
14-
"allowSyntheticDefaultImports": true,
1511
"verbatimModuleSyntax": true,
16-
"sourceMap": true,
1712
"types": ["node"],
18-
"baseUrl": ".",
19-
"paths": {
20-
"/*": ["./*"]
21-
},
22-
"lib": ["ESNext", "DOM", "DOM.Iterable", "ScriptHost"]
13+
"lib": ["ESNext", "DOM", "DOM.Iterable"]
2314
},
2415
"include": [
2516
// TypeScript and JSDoc-typed JavaScript files
@@ -35,11 +26,5 @@
3526
"public",
3627
// Ignore vendored code
3728
"static/*.js"
38-
],
39-
"ts-node": {
40-
"compilerOptions": {
41-
"useDefineForClassFields": false,
42-
"noImplicitOverride": true
43-
}
44-
}
29+
]
4530
}

0 commit comments

Comments
 (0)