更新Angular项目后,Sublimetext中的Typescript linting不起作用

时间:2018-03-09 18:40:51

标签: angular typescript sublimetext3 sublimelinter

我用我的Angular 4项目更新了节点包 npm install

出于任何奇怪的原因,我的Sublime文本编辑器中的TypeScript linter现在不再起作用了 - 它没有突出显示未定义的变量等。

如果我从另一个Angular项目中打开文件,那么linter会按预期工作。

我的package.json:

{
  "name": "my-sassy-app",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build --prod",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@agm/core": "^1.0.0-beta.2",
    "@angular/animations": "^5.2.8",
    "@angular/common": "^5.2.8",
    "@angular/compiler": "^5.2.8",
    "@angular/core": "^5.2.8",
    "@angular/forms": "^5.2.8",
    "@angular/http": "^5.2.8",
    "@angular/platform-browser": "^5.2.8",
    "@angular/platform-browser-dynamic": "^5.2.8",
    "@angular/router": "^5.2.8",
    "@ng-bootstrap/ng-bootstrap": "^1.0.1",
    "@swimlane/ngx-datatable": "^11.2.0",
    "@types/googlemaps": "^3.30.7",
    "angular5-csv": "^0.2.8",
    "bootstrap": "^4.0.0",
    "core-js": "^2.4.1",
    "ng2-toasty": "^4.0.3",
    "ngx-chips": "^1.6.7",
    "rxjs": "^5.5.6",
    "tldjs": "^2.3.1",
    "underscore": "^1.8.3",
    "zone.js": "^0.8.19"
  },
  "devDependencies": {
    "@angular/cli": "1.6.7",
    "@angular/compiler-cli": "^5.2.8",
    "@angular/language-service": "^5.2.8",
    "@types/jasmine": "~2.8.3",
    "@types/jasminewd2": "~2.0.2",
    "@types/node": "^6.0.102",
    "codelyzer": "^4.2.1",
    "jasmine-core": "~2.8.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~2.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "^1.4.2",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.1.2",
    "ts-node": "~4.1.0",
    "tslint": "^5.9.1",
    "typescript": "~2.5.3"
  }
}

我在这里缺少什么?

0 个答案:

没有答案