-
I would like to propose a new command (or flag) that would produce a new type of output for administrative use. Not sure this is feasible technically, but let me describe how it would help.
Given the cascade nature of eslint configs and the rule sources, it can be really difficult in more complex or neglected projects to review or debug the existing configuration, and specifically which configs contribute to introducing a given rule. During that review process one might need to figure out:
To help users with it, eslint could offer an output where the cascade of sources is clearly listed, by looking recursively at all overrides as well as extended configs and plugins. Since the output I would expect is very similar to that from Let's say:
The additional bits of meta information would be an array of all the sources introducing given rule, along with its severity. ExampleGiven the
we could have additional key at the root level:
It's just a very rough example, the details of the format TBD.
I assume retrieving the information I am asking here might be performance costly. Yet, given its administrative value and how much of tedious job it would save me, I would gladly wait longer in order to get reliable data. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Unfortunately, this is just not feasible going forward. We aren't making any changes to the old config system, and the new config system does away with the concept of files altogether, so there is no source for the data you're looking for. Your best bet is to run ESLint with |
Beta Was this translation helpful? Give feedback.
Unfortunately, this is just not feasible going forward. We aren't making any changes to the old config system, and the new config system does away with the concept of files altogether, so there is no source for the data you're looking for.
Your best bet is to run ESLint with
--debug
and follow the steps there.