ng lint command - How can I execute it on only one typescript file?
As of Angular CLI version 8, you can lint a single file with
ng lint --files src/app/app.component.ts
I know I am late to the party but someone else could benefit from this.We face the same issue and to solve this I have created a package
https://www.npmjs.com/package/ng-lintone-cli
It is fairly simple package - you just need to pass command lintone file name <file-name>
and it will display lint error associated to that file