Skip to content

Commit c805b2d

Browse files
committed
chore: update TypeScript target and improve linting options in tsconfig files
1 parent 2a40360 commit c805b2d

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2020",
3+
"target": "ES2022",
44
"useDefineForClassFields": true,
5-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
5+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
66
"module": "ESNext",
77
"skipLibCheck": true,
88

99
/* Bundler mode */
1010
"moduleResolution": "bundler",
1111
"allowImportingTsExtensions": true,
12-
"isolatedModules": true,
12+
"verbatimModuleSyntax": true,
1313
"moduleDetection": "force",
1414
"noEmit": true,
1515
"jsx": "react-jsx",
@@ -18,7 +18,9 @@
1818
"strict": true,
1919
"noUnusedLocals": true,
2020
"noUnusedParameters": true,
21-
"noFallthroughCasesInSwitch": true
21+
"erasableSyntaxOnly": true,
22+
"noFallthroughCasesInSwitch": true,
23+
"noUncheckedSideEffectImports": true
2224
},
2325
"include": ["src"]
2426
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2022",
3+
"target": "ES2023",
44
"lib": ["ES2023"],
55
"module": "ESNext",
66
"skipLibCheck": true,
77

88
/* Bundler mode */
99
"moduleResolution": "bundler",
1010
"allowImportingTsExtensions": true,
11-
"isolatedModules": true,
11+
"verbatimModuleSyntax": true,
1212
"moduleDetection": "force",
1313
"noEmit": true,
1414

1515
/* Linting */
1616
"strict": true,
1717
"noUnusedLocals": true,
1818
"noUnusedParameters": true,
19-
"noFallthroughCasesInSwitch": true
19+
"erasableSyntaxOnly": true,
20+
"noFallthroughCasesInSwitch": true,
21+
"noUncheckedSideEffectImports": true
2022
},
2123
"include": ["vite.config.ts"]
2224
}

0 commit comments

Comments
 (0)