Kaynağa Gözat

Create a WIP replacement

Manav Rathi 1 yıl önce
ebeveyn
işleme
54e33d3f42
1 değiştirilmiş dosya ile 26 ekleme ve 18 silme
  1. 26 18
      web/apps/auth/tsconfig.json

+ 26 - 18
web/apps/auth/tsconfig.json

@@ -1,24 +1,32 @@
 {
 {
-    "extends": "../../tsconfig.base.json",
+    "extends": "@/build-config/tsconfig-typecheck.json",
+    "include": [
+        "src/**/*.ts",
+        "src/**/*.tsx",
+        "src/**/*.d.ts",
+        "../../packages/shared/themes/mui-theme.d.ts"
+    ],
+    // Temporarily disable some things to get the existing code to compile
+    // without warnings.
     "compilerOptions": {
     "compilerOptions": {
         "baseUrl": "./src",
         "baseUrl": "./src",
-        "downlevelIteration": true,
-        "jsx": "preserve",
+
         "jsxImportSource": "@emotion/react",
         "jsxImportSource": "@emotion/react",
-        "lib": ["dom", "dom.iterable", "esnext", "webworker"],
-        "noImplicitAny": false,
-        "noUnusedLocals": false,
+
+        /* Also indicate expectation of a WebWorker runtime */
+        "lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"],
+
+        "verbatimModuleSyntax": false,
+        "resolveJsonModule": false,
+
+        "strict": false,
+        /* Stricter than strict */
+        "noImplicitReturns": false,
         "noUnusedParameters": false,
         "noUnusedParameters": false,
-        "strictNullChecks": false,
-        "target": "es5",
-        "useUnknownInCatchVariables": false
-    },
-    "include": [
-        "next-env.d.ts",
-        "**/*.ts",
-        "**/*.tsx",
-        "**/*.js",
-        "../../packages/shared/themes/mui-theme.d.ts"
-    ],
-    "exclude": ["node_modules", "out", ".next", "thirdparty"]
+        "noUnusedLocals": false,
+        "noFallthroughCasesInSwitch": false,
+        /* e.g. makes array indexing returns undefined */
+        "noUncheckedIndexedAccess": false,
+        "exactOptionalPropertyTypes": false
+    }
 }
 }