30 lines
782 B
JSON
30 lines
782 B
JSON
{
|
|
"compilerOptions": {
|
|
// Environment setup & latest features
|
|
"lib": ["ESNext"],
|
|
"target": "ESNext",
|
|
"module": "ESNext",
|
|
"moduleDetection": "force",
|
|
"jsx": "react-jsx",
|
|
"allowJs": true,
|
|
// Bundler mode
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"declaration": true,
|
|
"emitDeclarationOnly": true,
|
|
// Best practices
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
// Some stricter flags (disabled by default)
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noPropertyAccessFromIndexSignature": true,
|
|
// Output
|
|
"outDir": "./dist"
|
|
},
|
|
"include": ["./src/index.ts"]
|
|
}
|