Angular-cli: add --config option to ng lint

Created on 13 Jun 2017  路  4Comments  路  Source: angular/angular-cli

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [X] feature request

Versions.


@angular/cli: 1.0.1
node: 6.10.2
os: win32 x64 (Windows 7)

Repro steps.


launch command ng lint --config /foo/tslint.json

The log given by the failure.


The option '--config' is not registered with the lint command. Run ng lint --help for a list of supported options.

Desired functionality.


Is it possible to implement the ability to pass the path of the eslint config file.
The aim is to centralize le config and that the config cannot be modifiable.

Mention any other details that might be useful.

3 (nice to have) inconvenient feature

Most helpful comment

we would really appreciate this change.

All 4 comments

we would really appreciate this change.

Ah, I just spent a good 5 minutes playing around with different combinations of setting the config file, only to find out ng lint didn't implement it LOL

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

Kindly see: https://angular.io/cli/lint there is a option named tslintConfig

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings