What is linting and how do you run linting for your Angular application unsing Angular CLI?

Experience Level: Junior
Tags: AngularAngular CLI

Answer

Linting is a process of an automated checking for known issues in a source code. You can run linting process by executing a linter. Different languages and different technologies have different linters. Angular CLI has an integrated linter.

To run the integrated Angular CLI linter, run the following command from the command line:

ng lint

This command will run the linting process and show the results in your command line.

The Angular linter can find errors like missed semicolons, inconsistent names of components, directives and so on.

Comments

No Comments Yet.
Be the first to tell us what you think.
Angular CLI for beginners
Angular CLI for beginners

Are you learning Angular CLI ? Try our test we designed to help you progress faster.

Test yourself