Files
arpit-source a9564eeda5 ng-lint: add page (#20605)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Adriano Inghingolo <68734231+SpikeTheDragon40k@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
2026-01-22 12:14:24 +02:00

555 B

ng lint

Check Angular project code for style and errors using the configured linter. Note: Linting requires setup via ng add. More information: https://angular.dev/cli/lint.

  • Lint all projects in the workspace:

ng lint

  • Lint a specific project:

ng lint {{project_name}}

  • Automatically fix linting errors:

ng lint {{project_name}} --fix

  • Return a successful exit code even if lint errors are found:

ng lint {{project_name}} --force

  • Use a specific output format:

ng lint {{project_name}} --format {{stylish|json|...}}