Trevor Karjanis 9c62ddcd69 docs: update the description of the lint command
Update the description of the lint command for when a project name is not provided.

Closes #21619
2021-08-23 11:06:33 +01:00

640 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 all projects.

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": {}
      }
    }
  }
}