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.
Related Angular CLI job interview questions
How do you create new application using Angular CLI?
AngularAngular CLI JuniorWhat do you need to do in order to be able to run Angular CLI on your computer?
AngularAngular CLI JuniorHow do you run an Angular application on your local computer using Angular CLI?
AngularAngular CLI JuniorHow do you find out what version of Angular CLI do you have installed?
AngularAngular CLI JuniorHow do you display a list of basic commands that Angular CLI supports?
AngularAngular CLI Junior