Mops on a red wall

New ng lint syntax on Angular 6

Let’s say you had a syntax like ng lint --format stylish on your package.json before Angular 6.

Running this after you update to Angular 6 will result in the following error: Architect command with multiple targets cannot specify overrides. This error is not much of help when you know that before update the linting worked fine.

For this to work, we have to add the name of the application after the ng lint command: ng lint your_app_name --format stylish

Leave a Reply

Your email address will not be published. Required fields are marked *