简体   繁体   中英

Use of the 2 tslint.json file in Angular 6 Project

在此输入图像描述

What is the significance of two tslint.json(inside src folder) and inside project folder? What is the differnece between them?

The one in the project folder is your generic TS lint file that applies globally.

The one in the src folder is a project specific TS lint file that extends the other one, allowing you to tweak TS lint settings for the specific project.

Remember with Angular, you can have multiple projects and you may want slightly different TS lint settings for those projects.

If you only have one project, I think it is fairly safe to delete the TS lint file in the src folder. In the project I am working on we seem to have done just that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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