Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
640 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.
|
---|
| 2 | When a project name is not supplied, executes the `lint` builder for all projects.
|
---|
| 3 |
|
---|
| 4 | 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](guide/cli-builder).
|
---|
| 5 | For example:
|
---|
| 6 |
|
---|
| 7 | ```json
|
---|
| 8 | "projects": {
|
---|
| 9 | "my-project": {
|
---|
| 10 | ...
|
---|
| 11 | "architect": {
|
---|
| 12 | ...
|
---|
| 13 | "lint": {
|
---|
| 14 | "builder": "@angular-eslint/builder:lint",
|
---|
| 15 | "options": {}
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
| 20 | ```
|
---|
Note:
See
TracBrowser
for help on using the repository browser.