Files
edgeever/tsconfig.json
T
Dariusz Koryto 3e54226110 chore(ts): enable noFallthroughCasesInSwitch and noImplicitOverride (#577)
Turn on both compiler checks in the root TypeScript configuration, which
apps/web, apps/api, apps/extension, packages/shared and packages/plugin-api
extend, and in the separate Expo configuration of apps/mobile.

No switch statement falls through today. The 19 members that override a
base class member (React error boundaries, the local database recovery
error and the vendored poster badge) now declare `override`; this only
changes type checking and is erased from the emitted JavaScript.
2026-10-15 21:54:59 +08:00

31 lines
744 B
JSON

{
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "Bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"strict": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noEmit": true,
"skipLibCheck": true,
"ignoreDeprecations": "6.0",
"types": ["@cloudflare/workers-types", "node"],
"baseUrl": ".",
"paths": {
"@/*": ["apps/web/src/*"]
}
},
"include": [
"apps/**/*.ts",
"apps/**/*.tsx",
"packages/**/*.ts",
"packages/**/*.tsx"
],
"exclude": ["apps/mobile", "apps/ios/EditorSource"]
}