【问题标题】:Atom auto tslint detectionAtom 自动 tslint 检测
【发布时间】:2017-07-08 23:07:09
【问题描述】:

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

谁能给我解释一下,这是怎么发生的?

【问题讨论】:

    标签: atom-editor tslint


    【解决方案1】:

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

    tslint 查找 tslint.json 文件以加载规则。

    【讨论】:

    • 是否有可以自动进行修复的 atom 快速修复选项?比如用单引号换成双引号等?
    猜你喜欢
    • 1970-01-01
    • 2017-12-04
    • 2015-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-24
    相关资源
    最近更新 更多