What is linting and how do you run linting for your Angular application unsing Angular CLI?
Experience Level:
Junior
Tags:
Angular
Angular 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?
Angular Angular CLI Junior -
What do you need to do in order to be able to run Angular CLI on your computer?
Angular Angular CLI Junior -
How do you run an Angular application on your local computer using Angular CLI?
Angular Angular CLI Junior -
How do you find out what version of Angular CLI do you have installed?
Angular Angular CLI Junior -
How do you display a list of basic commands that Angular CLI supports?
Angular Angular CLI Junior