mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 11:03:53 +08:00
647 B
647 B
The command takes an optional project name, as specified in the projects
section of the angular.json
workspace configuration file.
When a project name is not supplied, executes the lint
builder for the default project.
To use the ng lint
command, use ng add
to add a package that implements linting capabilities. Adding the package automatically updates your workspace configuration, adding a lint CLI builder.
For example:
"projects": {
"my-project": {
...
"architect": {
...
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {}
}
}
}
}