mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 02:54:21 +08:00
1.4 KiB
1.4 KiB
Documentation below is for CLI version 6. For version 7 see here.
ng lint
Overview
ng lint
will lint you app code using tslint.
ng lint [project]
Options
configuration
--configuration
(alias: -c
)
Specify the configuration to use.
tslint-config
--tslint-config
The name of the TSLint configuration file.
fix
--fix
Fixes linting errors (may overwrite linted files).
type-check
--type-check
Controls the type check for linting.
force
--force
Succeeds even if there was linting errors.
silent
--silent
Show output text.
format
--format
Output format (prose, json, stylish, verbose, pmd, msbuild, checkstyle, vso, fileslist, codeFrame).