nonebot2/website/tsconfig.json

43 lines
1.5 KiB
JSON
Raw Normal View History

{
// This file is not used in compilation. It is here just for a nice editor experience.
2024-09-15 14:52:18 +00:00
"extends": "@nullbot/docusaurus-tsconfig",
"compilerOptions": {
2024-09-15 14:52:18 +00:00
"lib": ["DOM", "ESNext"],
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"],
2024-01-21 11:49:59 +00:00
"@theme/*": ["./src/theme/*"]
},
2024-09-15 14:52:18 +00:00
"resolveJsonModule": true,
"allowArbitraryExtensions": true,
2024-09-15 14:52:18 +00:00
// Duplicated from the root config, because TS does not support extending
// multiple configs and we want to dogfood the @docusaurus/tsconfig one
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": false,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": false,
"noUncheckedIndexedAccess": true,
"strict": true,
2024-09-15 14:52:18 +00:00
"alwaysStrict": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictBindCallApply": true,
2024-09-15 14:52:18 +00:00
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
2024-09-15 14:52:18 +00:00
"useUnknownInCatchVariables": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
2024-09-15 14:52:18 +00:00
"importsNotUsedAsValues": "remove",
2024-09-15 14:52:18 +00:00
// This is important. We run `yarn tsc` in website so we can catch issues
// with our declaration files (mostly names that are forgotten to be
// imported, invalid semantics...). Because we don't have end-to-end type
// tests, removing this would make things much harder to catch.
"skipLibCheck": false
2024-01-21 11:49:59 +00:00
}
}