Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

new tsc

Manav Rathid582f79f4261
diff --git a/web/apps/accounts/tsconfig.json b/web/apps/accounts/tsconfig.json
index cbdd32f742..bbe7217aad 100644
--- a/web/apps/accounts/tsconfig.json
+++ b/web/apps/accounts/tsconfig.json
@@ -1,25 +1,17 @@
{
- "extends": "../../tsconfig.base.json",
+ "extends": "@/build-config/tsconfig-next.json",
"compilerOptions": {
+ /* Set the base directory from which to resolve bare module names */
"baseUrl": "./src",
- "downlevelIteration": true,
- "jsx": "preserve",
- "jsxImportSource": "@emotion/react",
- "lib": ["dom", "dom.iterable", "esnext", "webworker"],
- "noImplicitAny": false,
- "noUnusedLocals": false,
- "noUnusedParameters": false,
- "strictNullChecks": false,
- "target": "es5",
- "useUnknownInCatchVariables": false
+
+ /* TODO(MR): Enable this */
+ "noUncheckedIndexedAccess": false,
+ /* MUI doesn't play great with exactOptionalPropertyTypes currently. */
+ "exactOptionalPropertyTypes": false
},
"include": [
- "next-env.d.ts",
- "**/*.ts",
- "**/*.tsx",
- "**/*.js",
- "../../packages/shared/themes/mui-theme.d.ts",
- "../../packages/accounts/**/*.tsx"
- ],
- "exclude": ["node_modules", "out", ".next", "thirdparty"]
+ "src",
+ "../../packages/next/global-electron.d.ts",
+ "../../packages/shared/themes/mui-theme.d.ts"
+ ]
}
diff --git a/web/apps/auth/tsconfig.json b/web/apps/auth/tsconfig.json
index 507ae19bdf..685ff12c59 100644
--- a/web/apps/auth/tsconfig.json
+++ b/web/apps/auth/tsconfig.json
@@ -1,11 +1,5 @@
{
"extends": "@/build-config/tsconfig-next.json",
- "include": [
- "src",
- "next-env.d.ts",
- "../../packages/next/global-electron.d.ts",
- "../../packages/shared/themes/mui-theme.d.ts"
- ],
"compilerOptions": {
/* Set the base directory from which to resolve bare module names */
"baseUrl": "./src",
@@ -16,5 +10,11 @@
"noUncheckedIndexedAccess": false,
/* MUI doesn't play great with exactOptionalPropertyTypes currently. */
"exactOptionalPropertyTypes": false
- }
+ },
+ "include": [
+ "src",
+ "next-env.d.ts",
+ "../../packages/next/global-electron.d.ts",
+ "../../packages/shared/themes/mui-theme.d.ts"
+ ]
}