-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify and modernize
tsconfig.base.json
(#442)
- Loading branch information
Showing
1 changed file
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,35 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"display": "UpLeveled Node + React TSConfig", | ||
// Inspired by Total TypeScript TSConfig Cheat Sheet | ||
// https://www.totaltypescript.com/tsconfig-cheat-sheet | ||
"compilerOptions": { | ||
"lib": ["DOM", "DOM.Iterable", "ESNext"], | ||
"target": "ES2015", | ||
// Module system, module resolution | ||
"module": "Preserve", | ||
"moduleDetection": "force", | ||
"resolveJsonModule": true, | ||
"esModuleInterop": true, | ||
"isolatedModules": true, | ||
"allowJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"downlevelIteration": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"jsx": "react-jsx", | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"verbatimModuleSyntax": true, | ||
|
||
// Standard library | ||
"lib": ["ES2022", "DOM", "DOM.Iterable"], | ||
|
||
// Output | ||
"target": "ES2022", | ||
"noEmit": true, | ||
|
||
// Strictness | ||
"strict": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUncheckedIndexedAccess": true, | ||
|
||
// Performance | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"incremental": true, | ||
"noUncheckedIndexedAccess": true | ||
|
||
// React | ||
"jsx": "react-jsx" | ||
}, | ||
"exclude": ["${configDir}/node_modules", "${configDir}/build"] | ||
} |