我应该在Typescript> 2还是TSLint中使用内置的linter?

bob*_*e01 7 lint typescript

我试图决定为什么我应该TSLint在我的Typescript2/ Angular2项目中使用.

暴露的规则列表TSLint:https://palantir.github.io/tslint/rules/

可用的编译器选项TypeScript:https://www.typescriptlang.org/docs/handbook/compiler-options.html

从Typescript2现在开始有一些编译器选项--noUnusedParameters,是否真的需要TSLint?是TSLint编译器选项的超集吗?

项目结构:

.
??? bower.json
??? index.js
??? package.json
??? src
?   ??? app
?   ?   ??? app.component.spec.ts
?   ?   ??? app.component.ts
?   ?   ??? app.module.ts
?   ??? index.html
?   ??? main.ts
?   ??? tsconfig.json
??? tslint.js
??? webpack.common.js
??? webpack.dev.config.js
Run Code Online (Sandbox Code Playgroud)

Vin*_*ent 6

当TSLint正确添加到TypeScript时,它会删除规则.但是,仍有很多规则,TypeScript不会检查,所以如果你关心它,你可能想要同时使用它们.