π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
tsconfig
Manav Rathi78b82e774d44
diff --git a/infra/staff/tsconfig.json b/infra/staff/tsconfig.jsonindex 291fed6caf..e4ff26ca2d 100644--- a/infra/staff/tsconfig.json+++ b/infra/staff/tsconfig.json@@ -1,5 +1,48 @@{- "extends": "@/build-config/tsconfig-vite.json",+ /* TSConfig file used for typechecking the files in src/.+ *+ * The base configuration was generated using `yarn create vite`. This was+ * already almost the same as the `tsconfig-typecheck.json` we use+ * elsewhere, with one or two differences.+ *+ * For more details about the flags vite cares about, see+ * https://vitejs.dev/guide/features.html#typescript-compiler-options+ */+ "compilerOptions": {+ "target": "ES2020",+ "useDefineForClassFields": true,+ "lib": ["ES2020", "DOM", "DOM.Iterable"],+ "module": "esnext",+ "skipLibCheck": true,++ /* Bundler mode. */+ "moduleResolution": "bundler",+ "allowImportingTsExtensions": true,+ "resolveJsonModule": true,+ "isolatedModules": true,+ "noEmit": true,+ "jsx": "react-jsx",++ /* Linting. */+ "strict": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true,+ "noFallthroughCasesInSwitch": true,++ /*+ * On top of the generated configuration, we've mostly added additional+ * strictness checks.+ */++ /* Require the `type` modifier when importing types. */+ "verbatimModuleSyntax": true,++ /* Stricter than strict. */+ "noImplicitReturns": true,+ /* e.g. makes array indexing returns undefined. */+ "noUncheckedIndexedAccess": true,+ "exactOptionalPropertyTypes": true+ },"include": ["src"],"references": [{ "path": "./tsconfig.node.json" }]}diff --git a/infra/staff/tsconfig.node.json b/infra/staff/tsconfig.node.jsonindex a8d6e3fc8f..71c4923013 100644--- a/infra/staff/tsconfig.node.json+++ b/infra/staff/tsconfig.node.json@@ -1,4 +1,15 @@{- "extends": "@/build-config/tsconfig-vite.node.json",+ /* TSConfig file used for typechecking vite's config file itself.+ *+ * These are vite defaults, generated using `yarn create vite`.+ */+ "compilerOptions": {+ "composite": true,+ "skipLibCheck": true,+ "module": "ESNext",+ "moduleResolution": "bundler",+ "allowSyntheticDefaultImports": true,+ "strict": true+ },"include": ["vite.config.ts"]}diff --git a/web/packages/build-config/tsconfig-vite.json b/web/packages/build-config/tsconfig-vite.jsonindex 8a0d12f15f..e4ff26ca2d 100644--- a/web/packages/build-config/tsconfig-vite.json+++ b/web/packages/build-config/tsconfig-vite.json@@ -1,5 +1,5 @@{- /* TSConfig file used for typechecking the files in src/+ /* TSConfig file used for typechecking the files in src/.** The base configuration was generated using `yarn create vite`. This was* already almost the same as the `tsconfig-typecheck.json` we use@@ -15,7 +15,7 @@"module": "esnext","skipLibCheck": true,- /* Bundler mode */+ /* Bundler mode. */"moduleResolution": "bundler","allowImportingTsExtensions": true,"resolveJsonModule": true,@@ -23,7 +23,7 @@"noEmit": true,"jsx": "react-jsx",- /* Linting */+ /* Linting. */"strict": true,"noUnusedLocals": true,"noUnusedParameters": true,@@ -34,12 +34,12 @@* strictness checks.*/- /* Require the `type` modifier when importing types */+ /* Require the `type` modifier when importing types. */"verbatimModuleSyntax": true,- /* Stricter than strict */+ /* Stricter than strict. */"noImplicitReturns": true,- /* e.g. makes array indexing returns undefined */+ /* e.g. makes array indexing returns undefined. */"noUncheckedIndexedAccess": true,"exactOptionalPropertyTypes": true},diff --git a/web/packages/build-config/tsconfig-vite.node.json b/web/packages/build-config/tsconfig-vite.node.jsonindex d7639ac8e6..71c4923013 100644--- a/web/packages/build-config/tsconfig-vite.node.json+++ b/web/packages/build-config/tsconfig-vite.node.json@@ -1,5 +1,5 @@{- /* TSConfig file used for typechecking vite's config file itself+ /* TSConfig file used for typechecking vite's config file itself.** These are vite defaults, generated using `yarn create vite`.*/