Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Display computed rules list #4698

Closed
dchenk opened this issue May 10, 2019 · 2 comments
Closed

Display computed rules list #4698

dchenk opened this issue May 10, 2019 · 2 comments

Comments

@dchenk
Copy link

dchenk commented May 10, 2019

Feature request

Is your feature request that we implement a new rule?
No.

Is your feature request related to a problem? Please describe.
It's often difficult to determine which rules are active and in what configuration. I'm often needing to search through the list of rule sets listed in extends to figure out what's being overridden where.

Describe the solution you'd like
There should be a CLI command that will display the list of computed rules. The command could be named something like --display-computed. If the option is present when tslint is invoked, you would simply get a print out in standard output of a JSON array of the resultant rules after combining all the imported and overridden rules.

Describe alternatives you've considered
There doesn't appear to be a way to get tslint to display precisely how it resolved all the rules given to it.

Additional context
ClangFormat has such a feature (named -dump-config): https://clang.llvm.org/docs/ClangFormat.html

@adidahiya
Copy link
Contributor

Yeah, this would be nice to have. Related: #2267, #4608, #3828

@JoshuaKGoldberg
Copy link
Contributor

I believe this particular issue is duplicate of #3720, which was resolved in #4744. Please do post here if that's not the case!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants