mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
30 lines
1.7 KiB
JSON
30 lines
1.7 KiB
JSON
|
|
{
|
||
|
|
"name": "lint",
|
||
|
|
"command": "ng lint [project]",
|
||
|
|
"shortDescription": "Runs linting tools on Angular application code in a given project folder.",
|
||
|
|
"longDescriptionRelativePath": "@angular/cli/src/commands/lint/long-description.md",
|
||
|
|
"longDescription": "The command takes an optional project name, as specified in the `projects` section of the `angular.json` workspace configuration file.\nWhen a project name is not supplied, executes the `lint` builder for all projects.\n\nTo 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).\nFor example:\n\n```json\n\"projects\": {\n \"my-project\": {\n ...\n \"architect\": {\n ...\n \"lint\": {\n \"builder\": \"@angular-eslint/builder:lint\",\n \"options\": {}\n }\n }\n }\n}\n```\n",
|
||
|
|
"aliases": [],
|
||
|
|
"deprecated": false,
|
||
|
|
"options": [
|
||
|
|
{
|
||
|
|
"name": "configuration",
|
||
|
|
"type": "string",
|
||
|
|
"aliases": [
|
||
|
|
"c"
|
||
|
|
],
|
||
|
|
"description": "One or more named builder configurations as a comma-separated list as specified in the \"configurations\" section in angular.json.\nThe builder uses the named configurations to run the given target.\nFor more information, see https://angular.io/guide/workspace-config#alternate-build-configurations."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "help",
|
||
|
|
"type": "boolean",
|
||
|
|
"description": "Shows a help message for this command in the console."
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"name": "project",
|
||
|
|
"type": "string",
|
||
|
|
"description": "The name of the project to build. Can be an application or a library.",
|
||
|
|
"positional": 0
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|