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

Experience Level: Junior
Tags: Angular Angular CLI


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.

Related Angular CLI job interview questions
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