Linting code

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.

You can configure the linter by specifying ruleset settings in the tslint.json file in the root of the project.

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.