To lint code, execute the following in the Terminal:
Run the following command:
ng lint
The ng lint command runs the TypeScript linter on the source code. Linting is essentially static code analysis and assists immensely with maintaining code standards and conventions, as well as helping to find potential issues and bugs.