mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-05 09:48:57 +02:00
* feat(v2): Support swizzling TypeScript components * Add tsc --noEmit to tsc script in theme-classic Now everything can pass the type checker! (although still a lot of any) * Add tsconfig and types.d.ts to website Improve developer experience. As an example, I converted NotFound to tsx * Apply type annotation suggestions * Do not fallback to `getThemePath` if getTypeScriptThemePath is undefined * Fix tsc * Add module declaration for @theme-original/* * Move babel cli to root package.json
33 lines
856 B
JSON
33 lines
856 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2017",
|
|
"module": "commonjs",
|
|
"lib": ["es2017","es2019.array", "DOM"],
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
|
|
/* Strict Type-Checking Options */
|
|
"strict": true,
|
|
"strictNullChecks": true,
|
|
"strictFunctionTypes": true,
|
|
"strictBindCallApply": true,
|
|
"strictPropertyInitialization": true,
|
|
"noImplicitThis": true,
|
|
"alwaysStrict": true,
|
|
|
|
/* Additional Checks */
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
|
|
/* Module Resolution Options */
|
|
"moduleResolution": "node",
|
|
"allowSyntheticDefaultImports": true,
|
|
"esModuleInterop": true,
|
|
|
|
/* Advanced Options */
|
|
"resolveJsonModule": true
|
|
},
|
|
"exclude": ["node_modules", "**/__tests__/**/*", "**/lib/**/*"]
|
|
}
|