mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 02:08:36 +02:00
* refactor: use TS project references instead of running tsc multiple times * deduplicate * dedup * eliminate --project * add swc config * add target
48 lines
1.4 KiB
JSON
48 lines
1.4 KiB
JSON
{
|
|
"compilerOptions": {
|
|
/* Emit */
|
|
"target": "ES2020",
|
|
"module": "commonjs",
|
|
"lib": ["ESNext", "DOM"],
|
|
"declaration": true,
|
|
"declarationMap": false,
|
|
"jsx": "react-native",
|
|
"importHelpers": true,
|
|
"noEmitHelpers": true,
|
|
|
|
/* Strict Type-Checking Options */
|
|
"allowUnreachableCode": false,
|
|
// Too hard to turn on
|
|
"exactOptionalPropertyTypes": false,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noImplicitOverride": true,
|
|
"noImplicitReturns": true,
|
|
// `process.env` is usually accessed as property
|
|
"noPropertyAccessFromIndexSignature": false,
|
|
"noUncheckedIndexedAccess": true,
|
|
/* strict family */
|
|
"strict": true,
|
|
"alwaysStrict": true,
|
|
"noImplicitAny": true,
|
|
"noImplicitThis": true,
|
|
"strictBindCallApply": true,
|
|
"strictFunctionTypes": true,
|
|
"strictNullChecks": true,
|
|
"strictPropertyInitialization": true,
|
|
"useUnknownInCatchVariables": true,
|
|
/* Handled by ESLint */
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"importsNotUsedAsValues": "remove",
|
|
|
|
/* Module Resolution */
|
|
"moduleResolution": "node",
|
|
"resolveJsonModule": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"isolatedModules": true,
|
|
"skipLibCheck": true // @types/webpack and webpack/types.d.ts are not the same thing
|
|
},
|
|
"exclude": ["node_modules", "**/__tests__/**", "**/lib/**/*"]
|
|
}
|