lint
ng lintThe 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": {} } } }}
Arguments
projectThe name of the project to build. Can be an application or a library.
stringOptions
configurationcOne or more named builder configurations as a comma-separated list as specified in the "configurations" section in angular.json. The builder uses the named configurations to run the given target. For more information, see https://angular.dev/reference/configs/workspace-config#alternate-build-configurations.
stringhelpShows a help message for this command in the console.
boolean