mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
Closes #867, #3993 BREAKING CHANGE: In order to use the updated `ng lint` command, the following section will have to be added to the project's `angular-cli.json` at the root level of the json object. ```json "lint": [ { "files": "src/**/*.ts", "project": "src/tsconfig.json" }, { "files": "e2e/**/*.ts", "project": "e2e/tsconfig.json" } ], ``` Alternatively, you can run `ng update`.
15 lines
352 B
Markdown
15 lines
352 B
Markdown
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
|
|
|
|
# ng lint
|
|
|
|
## Overview
|
|
`ng lint` will lint you app code using tslint.
|
|
|
|
## Options
|
|
|
|
`--fix` will attempt to fix lint errors
|
|
|
|
`--force` will always return error code 0 even with lint errors
|
|
|
|
`--format` (`-t`) the output formatter to use
|