Angular 1项目的TSLint配置 [英] TSLint configuration for Angular 1 project
问题描述
我的团队正在使用Angular 1.5.* +打字稿进行项目.
my team is working on project using Angular 1.5.* + typescript.
有人可以给我一些建议,例如我的项目的最佳TSLint配置吗?
Can someone give me advice for best TSLint configuration for such project as mine?
我现在要添加TSLint配置( https://github.com/官方TS回购中的Microsoft/TypeScript/blob/master/tslint.json ),并设置了ESlint规则. https://github.com/Microsoft/TypeScript/blob/master/tslint.json
I want now to add TSLint config ( https://github.com/Microsoft/TypeScript/blob/master/tslint.json) from official TS repo and with ESlint rules set. https://github.com/Microsoft/TypeScript/blob/master/tslint.json
够了吗?你觉得呢?
预先感谢您的回答.
推荐答案
够了吗?你觉得呢?
Will it be enough? What do you think?
我个人不会将其打开,直到出现问题为止.幸运的是,我很荣幸获得队友的尊重和爱意,所以他们知道我的意思.
Personally I don't switch it on till it becomes a problem. Fortunately I have the luxury of having my team mates respect and love so they know I mean well.
您可以选择一个,也可以直接使用:
You can pick that one or just go with :
{
"extends": "tslint:recommended"
}
要使用palantir默认值: https://github.com/palantir/tslint/#configuration
To use palantir defaults: https://github.com/palantir/tslint/#configuration
这篇关于Angular 1项目的TSLint配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!