about summary refs log tree commit diff
path: root/editors/code/tsconfig.json
diff options
context:
space:
mode:
authorTetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com>2023-06-28 03:01:57 +0900
committerTetsuharu Ohzeki <tetsuharu.ohzeki@gmail.com>2023-06-28 03:05:04 +0900
commit0ddf8b63e9d5c5bee37933ae5ca5c6d9f7a9e511 (patch)
treec3e3ee45416a3d78f2bfdfc664b1066c51c99f76 /editors/code/tsconfig.json
parent7c8ae35648099189e550c873c0dae3a4ca6c50a9 (diff)
editor/code: Use `@tsconfig/strictest` to define type checking rules
Motivation
-----------

This change aims to make it easier to manage tsconfig.
This intend to leave to create "ideal" rules about TypeScript's type checking.

Implementation
---------------

This change removes some duplicated rules defined in `@tsconfig/strictest` and add disabing some strict rules
that fails with the current codebase.
Diffstat (limited to 'editors/code/tsconfig.json')
-rw-r--r--editors/code/tsconfig.json15
1 files changed, 9 insertions, 6 deletions
diff --git a/editors/code/tsconfig.json b/editors/code/tsconfig.json
index 42e2846858a..50e3d68460a 100644
--- a/editors/code/tsconfig.json
+++ b/editors/code/tsconfig.json
@@ -1,18 +1,21 @@
 {
+    "extends": "@tsconfig/strictest/tsconfig.json",
     "compilerOptions": {
+        "esModuleInterop": false,
         "module": "commonjs",
         "target": "es2021",
         "outDir": "out",
         "lib": ["es2021"],
         "sourceMap": true,
         "rootDir": ".",
-        "strict": true,
+        "newLine": "LF",
+        // These disables some enhancement type checking options
+        // to update typescript version without any code change.
         "useUnknownInCatchVariables": false,
-        "noUnusedLocals": true,
-        "noUnusedParameters": true,
-        "noImplicitReturns": true,
-        "noFallthroughCasesInSwitch": true,
-        "newLine": "LF"
+        "exactOptionalPropertyTypes": false,
+        "noImplicitOverride": false,
+        "noPropertyAccessFromIndexSignature": false,
+        "noUncheckedIndexedAccess": false
     },
     "exclude": ["node_modules", ".vscode-test"],
     "include": ["src", "tests"]