Pārlūkot izejas kodu

fix(tsconfig): 启用严格类型检查以提升代码质量

yz 2 nedēļas atpakaļ
vecāks
revīzija
c5dfe91d1b
1 mainītis faili ar 9 papildinājumiem un 5 dzēšanām
  1. 9 5
      tsconfig.json

+ 9 - 5
tsconfig.json

@@ -7,10 +7,11 @@
       "es6"
     ],
     "allowJs": true,
+    "checkJs": true,
     "skipLibCheck": true,
     "esModuleInterop": true,
     "allowSyntheticDefaultImports": true,
-    "strict": false,
+    "strict": true,
     "forceConsistentCasingInFileNames": true,
     "module": "esnext",
     "moduleResolution": "node",
@@ -48,10 +49,13 @@
     ],
     "experimentalDecorators": true,
     "emitDecoratorMetadata": true,
-    "noImplicitAny": false,
-    "noImplicitReturns": false,
-    "noImplicitThis": false,
-    "strictNullChecks": false
+    "noImplicitAny": true,
+    "noImplicitReturns": true,
+    "noImplicitThis": true,
+    "strictNullChecks": true,
+    "strictPropertyInitialization": true,
+    "strictBindCallApply": true,
+    "strictFunctionTypes": true
   },
   "include": [
     "src/**/*.ts",