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

1

9

enter image description here

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

Croaky answered 26/9, 2018 at 20:57 Comment(0)
P
10

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.

Puttergill answered 27/9, 2018 at 0:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.