Atom auto tslint detection

问题描述:

最近我在我刚刚安装的原子编辑器(使用https://atom.io/packages/atom-typescript和linter)中打开了Angular 2项目。 我惊讶于atom自动检测到项目根目录下的tslint.json文件并应用这些规则来突出显示错误。Atom auto tslint detection

有人可以向我解释,这是怎么发生的?

TypeScript的linter是linter-tslint,它需要tslint作为依赖项。

tslint寻找tslint.json文件来加载规则。