简体   繁体   English

TSlint删除全局规则

[英]TSlint remove global rules

I am coding an Angular project, using VSCode, while using the extension TSlint. 我正在使用VSCode编码Angular项目,同时使用扩展TSlint。 My problem is that TSlint is applying some rules that are just tedious to me. 我的问题是TSlint正在应用一些对我来说很乏味的规则。 I would like to disable some of the rules in my TSlint extension. 我想禁用TSlint扩展中的某些规则。 How can I do this? 我怎样才能做到这一点?

I know you can change the rules by editing the tslint.json in your Angular project. 我知道您可以通过在Angular项目中编辑tslint.json来更改规则。 But how can I affect my global TSlintfor every project? 但是我如何影响每个项目的全局TSlint?

You can configure vscode tslint to use some other file instead tslint.json, 您可以将vscode tslint配置为使用其他文件代替tslint.json,

In vscode hit "ctrl + ," find TSLint and set custom config file. 在vscode中按“ ctrl +”,找到TSLint并设置自定义配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM