mirror of
https://github.com/supabase/supabase.git
synced 2026-07-02 05:44:25 +08:00
strictNullChecks was off for docs, which lets errors slip through and leads to incorrect required/optional typing on Zod-inferred types. This PR enables strictNullChecks and fixes all the existing violations.
40 lines
877 B
JSON
40 lines
877 B
JSON
{
|
|
"compilerOptions": {
|
|
"incremental": true,
|
|
"noImplicitAny": false,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"~/*": ["./*"],
|
|
"@ui/*": ["./../../packages/ui/src/*"]
|
|
},
|
|
"target": "ES2021",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": false,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"module": "esnext",
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"strictNullChecks": true
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
"pages/guides/append-test.js",
|
|
".next/types/**/*.ts",
|
|
"./../../packages/ui/src/**/*.d.ts"
|
|
],
|
|
"exclude": ["node_modules", "examples"]
|
|
}
|