在使用webpack的角度cli中,你怎么能关闭ng服务上的打字稿linting

时间:2017-04-13 22:41:24

标签: angular typescript webpack angular-cli

在使用webpack的角度cli中,如何关闭ng服务上的打字稿linting

我得到了一些我需要跳过的愚蠢错误。

我可以做任何角度cli设置来关闭正在检查的打字稿吗?

这是我正在使用的应用:https://github.com/2sic/app-tutorial-angular4-hello-dnn

这是我的角度cli json文件:

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "project": {
    "name": "my-app"
  },
  "apps": [
    {
      "root": "src",
      "outDir": "dist",
      "assets": [
        "assets",
        "favicon.ico",
        "favicon16.ico",
        "favicon16.png",
        "favicon32.ico",
        "favicon32.png",
        "favicon96.png",
        "humans.txt",
        "robots.txt",
        "sitemap.xml"
      ],
      "index": "index.html",
      "main": "main.ts",
      "polyfills": "polyfills.ts",
      "test": "test.ts",
      "tsconfig": "tsconfig.app.json",
      "testTsconfig": "tsconfig.spec.json",
      "prefix": "app",
      "styles": [
        "styles.scss"
      ],
      "scripts": [          
        "resources/jquery.js",
        "resources/jquery-ui.js",
        "resources/bootstrap.js",
        "resources/externalScripts.js",
        "resources/lodash.js",
        "resources/moment.js",    
        "resources/amcharts.js",  
        "resources/amcharts-pie.js",
        "resources/amcharts-light.js",
        "resources/firebase.js",
        "node_modules/@agm/core/core.umd.js",
        "node_modules/angular2-google-maps/core/core.umd.js"
      ],
      "environmentSource": "environments/environment.ts",
      "environments": {
        "dev": "environments/environment.ts",
        "prod": "environments/environment.prod.ts"
      }
    }
  ],
  "e2e": {
    "protractor": {
      "config": "./protractor.conf.js"
    }
  },
  "test": {
    "karma": {
      "config": "./karma.conf.js"
    }
  },
  "defaults": {
    "styleExt": "scss",
    "component": {
    }
  }
}

这是我想忽略的git bash打字稿错误。

enter image description here

0 个答案:

没有答案