mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-30 17:33:50 +08:00
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>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# 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|...}}`
|
||||
Reference in New Issue
Block a user