angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

add --config option to ng lint

Open philippart-s opened this issue 9 years ago • 4 comments

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.

philippart-s avatar Jun 13 '17 14:06 philippart-s

we would really appreciate this change.

billfranklin avatar Sep 14 '17 22:09 billfranklin

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

sam-s4s avatar Mar 14 '18 03:03 sam-s4s

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.

alan-agius4 avatar Oct 30 '18 08:10 alan-agius4

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.