如何扩展存储在 github 存储库中的私有 tslint?

How to extend private tslint that are stored in github repo?

我正在尝试扩展通过以下方式安装的自定义 github 存储库:

// package.json
"my-custom-rule": "mikebarron/custom-rules#custom-branch"

如何在扩展中应用此规则?

extends: ["mikebarron/custom-rules"]

只是给予 "custom-rules" 是行不通的。

找到了解决方案,看起来我需要遵循“package.json”文件中的“main”,在这种情况下需要有“custom-rules”。