ng lint
Runs linting tools on Angular app code in a given project folder.
ng lint <project> [options]
ng l <project> [options]
Description
Takes the name of the project, as specified in the projects section of the angular.json workspace configuration file. When a project name is not supplied, it will execute for all projects.
Options
OPTION | DESCRIPTION |
---|---|
--configuration=configuration | The linting configuration to use. Aliases: -c |
--exclude | Files to exclude from linting. |
--files | Files to include in linting. |
--fix=true|false | Fixes linting errors (may overwrite linted files). Default: false |
--force=true|false | Succeeds even if there was linting errors. Default: false |
--format=format | Output format (prose, json, stylish, verbose, pmd, msbuild, checkstyle, vso, fileslist). Default: prose |
--help=true|false|json|JSON | Shows a help message for this command in the console. Default: false |
--silent=true|false | Show output text. Default: false |
--tsConfig=tsConfig | The name of the TypeScript configuration file. |
--tslintConfig=tslintConfig | The name of the TSLint configuration file. |
--typeCheck=true|false | Controls the type check for linting. Default: false |
Previous: ng help
Next:
Getting started with Angular
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/angular/ng-lint.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics