0.0.2 • Published 7 years ago

digo-tslint v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

digo-tslint

digo 插件:使用 TSLint 检查 TypeScript 代码。

安装

npm install digo-tslint -g

用法

检查 TypeScript 代码

digo.src("*.ts", "*.tsx").pipe("digo-tslint");

选项

digo.src("*.ts", "*.tsx").pipe("digo-tslint", {
    level: "default",               // 报错等级。可以是 "default"、"error" 或 "warning"。
    configuration: "tslint.json",   // 规则文件。详见 https://palantir.github.io/tslint/usage/configuration/
    program: null,                  // 如果需要启动类型检查,则指定 tsconfig.json 路径或 ts.Program 对象。
    rulesDirectory: null,           // 规则文件夹。
    cwd: null                       // 根文件夹。
});

另参考 https://palantir.github.io/tslint/rules/。