Skip to content

Commit 10adaf6

Browse files
committed
refactor(tsconfig): add types field; remove redundant strict options; normalize casing
- Add "types": ["node"] to 4 vendor obsidian-plugin-library tsconfigs for TS 6.0 - Remove alwaysStrict, noImplicitAny, noImplicitThis from all 10 tsconfigs (redundant) - Normalize lib/module/target casing to lowercase across all 10 files Refs: TS 6.0 compatibility audit
1 parent 00a5633 commit 10adaf6

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

tsconfig.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22
"compilerOptions": {
33
"allowArbitraryExtensions": true,
44
"allowJs": true,
5-
"alwaysStrict": true,
65
"declaration": true,
76
"declarationMap": true,
87
"esModuleInterop": true,
9-
"lib": ["DOM", "ES2024"],
10-
"module": "NodeNext",
8+
"lib": ["dom", "es2024"],
9+
"module": "nodenext",
1110
"moduleResolution": "nodenext",
1211
"noFallthroughCasesInSwitch": true,
13-
"noImplicitAny": true,
1412
"noImplicitReturns": true,
15-
"noImplicitThis": true,
1613
"noUncheckedIndexedAccess": true,
1714
"noUnusedLocals": true,
1815
"noUnusedParameters": true,
@@ -25,7 +22,8 @@
2522
"skipLibCheck": true,
2623
"sourceMap": true,
2724
"strict": true,
28-
"target": "ES2018"
25+
"target": "es2018",
26+
"types": ["node"]
2927
},
3028
"exclude": ["node_modules", "dist"],
3129
"include": ["assets/**/*", "scripts/**/*", "src/**/*"]

0 commit comments

Comments
 (0)