mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 02:08:36 +02:00
* Use isolatedModules * better solution for useDocs? * fix blog-only mode * fix bad useDocs import
42 lines
1.2 KiB
JSON
42 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2019",
|
|
"module": "commonjs",
|
|
"lib": ["ESNext", "DOM"],
|
|
"declaration": true,
|
|
"declarationMap": false,
|
|
"jsx": "react",
|
|
|
|
/* Strict Type-Checking Options */
|
|
"strict": true,
|
|
"strictNullChecks": true,
|
|
"strictFunctionTypes": true,
|
|
"strictBindCallApply": true,
|
|
"strictPropertyInitialization": true,
|
|
"noImplicitThis": true,
|
|
"alwaysStrict": true,
|
|
|
|
/* Additional Checks */
|
|
"noUnusedLocals": false, // ensured by eslint, should not block compilation
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
/* Disabled on purpose (handled by ESLint, should not block compilation) */
|
|
"noUnusedParameters": false,
|
|
|
|
/* Module Resolution Options */
|
|
"moduleResolution": "node",
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
"isolatedModules": true,
|
|
|
|
/* Advanced Options */
|
|
"resolveJsonModule": true,
|
|
"skipLibCheck": true, // @types/webpack and webpack/types.d.ts are not the same thing
|
|
|
|
/* Use tslib */
|
|
"importHelpers": true,
|
|
"noEmitHelpers": true
|
|
},
|
|
"exclude": ["node_modules", "**/__tests__/**/*", "**/lib/**/*"]
|
|
}
|