安装和设置

安装 tslint run 命令

npm install -g tslint

Tslint 通过文件 tslint.json 配置。初始化默认配置运行命令

tslint --init

在文件运行命令中检查文件是否存在可能的错误

tslint filename.ts