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

Suggestion: Command to list all rules for current configuration #4060

Closed
ajcrites opened this issue Jul 20, 2018 · 1 comment
Closed

Suggestion: Command to list all rules for current configuration #4060

ajcrites opened this issue Jul 20, 2018 · 1 comment

Comments

@ajcrites
Copy link
Contributor

This is a suggestion for a command line flag that will list all currently configured rules. Note that this is different from #2444 which proposes to list all available rules.

My reasoning behind this is that tslint can extend several levels deep and can extend from multiple sources. There can also be some conflict, intentional or not, in rules specified from multiple sources. It would be useful to have a command that lists all rules configured for the current project as well as their source and whether they are overridden.

For example (red rules overridden):

  $ tslint --project-rules

  ./tslint.json
+   * no-console: false

    ts-config-org
-     * no-console: true
+     * variable-name: [true, 'check-format', 'allow-pascal-case']

     tslint-config-airbnb
-      * variable-name: [true, 'check-format']
+      * ...
@JoshuaKGoldberg
Copy link
Contributor

This seems like a good idea as a subset of #2267. Merging this issue into that one.

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