tslint - CI 构建失败,得到 "Could not find implementations" 和 "Severity for rule 'curly not found"

tslint - CI build fail that got "Could not find implementations" and "Severity for rule 'curly not found"

The project 在我的 Macbook 中通过了 npm run tslint,但在 CI 中失败了。

CI 构建细节见:https://travis-ci.org/FoXZilla/short-night/builds/468354760

您的 package.json 列出了 ts-lint,这是 tslint 的旧副本。删除它,它应该可以工作。

解释:它抱怨的规则缺失是在 ts-lint 发布后添加的 tslint 版本中添加的。在本地您可能解析到正确的包,但在 CI 中您可能不是。