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
- Automatically fix linting errors:
ng lint --fix
- Return a successful exit code even if lint errors are found:
ng lint --force
- Use a specific output format:
ng lint --format
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
