运行 遗留 angular 项目上的 TS Lint

Running TS Lint on legacy angular project

当我尝试通过 VS Code TsLint 扩展(运行time linting)对我的 angular 遗留应用程序进行 lint 时,不幸的是扩展失败了。

启动时我们设置了以下版本:

"@angular/cli": "~1.2.0",
"@angular/compiler-cli": "^4.0.1",
"@types/jasmine": "^2.2.30",
"autoprefixer": "^6.5.1",
"codelyzer": "~0.0.26",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
"karma": "1.2.0",
"karma-chrome-launcher": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-jasmine": "^1.0.2",
"karma-remap-istanbul": "^0.2.1",
"protractor": "4.0.5",
"ts-node": "1.2.1",
"tslint": "3.13.0",
"typescript": "2.2.2"

此设置能够 运行 ng lint,但 VS Code Tslinter 扩展失败并显示以下内容:

vscode-tslint: Cannot read tslint configuration - 'Cannot read property 'findConfigurationPath' of undefined'

我已经就此进行了一些 github 讨论,但它与旧版本的扩展有关。我目前使用的是 1.0.38.

还有其他人有类似的问题吗?我几乎 100% 确定这个问题与将旧版本的项目工具与新的 VS Code 扩展混合使用有关...

任何帮助都适用

我 运行 今天遇到同样的问题,似乎 vscode-tslint 的依赖项已更新。

我必须升级到:

"tslint": "^5.7.0",
"typescript": "^2.9.1"

让它工作。

我假设可以看到当前的要求here