ng lint command – How can I execute it on only one typescript file? June 15, 2023 by Tarik As of Angular CLI version 8, you can lint a single file with ng lint --files src/app/app.component.ts