Home > front end >  Angular - Strict linter but loose compiler
Angular - Strict linter but loose compiler

Time:02-24

I know I can set compiler option in tsconfig.json. But I want to set different options for the linter. Angular dropped the tslint.json file so I can't set compiler options there.

Basically I want the linter to nag me hard about bad practices but let me go ahead and compile.

How do I keep the compiler options loose so I can compile but the linter options strict?

p.s. Thanks in advance for a straight answer to the question and not telling me that I'm a sucky dev for wanting to do this.

CodePudding user response:

Here's the linter you can use with your updated Angular projects: https://github.com/angular-eslint/angular-eslint

Here's an example of configuring it:

https://youtu.be/IDBdtQlugtw

  • Related