欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

tsconfig.json 不进行严格类型检查 有大用

下面是一个tsconfig.json 文件的内容


/* To learn more about this file see: https://angular.io/config/tsconfig. */    
{
  "compileOnSave": false,
  "compilerOptions": {
    "suppressImplicitAnyIndexErrors":true,
    "strictNullChecks":false,
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "forceConsistentCasingInFileNames": true,
    "strict": false,    
    "noImplicitOverride": true,
    "noPropertyAccessFromIndexSignature": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2020",
    "module": "es2020",
    "lib": [
      "es2020",
      "dom"    
    ]
  },
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true    
  }
}


普通分类: