-
Sometimes you work on a project where a .eslintrc file has lived for ages. Lots of plugins, extensions, overrides, and rules. I was looking at such a file and wondered, how can I remove redundant config? Config that is overridden by other extensions/plugins/rules. I found --print-config flag for the CLI helpful. I can see the "final", or merged config that eslint uses. Simplified Example
--print-config with comments on origin, overrides, etc
Such a feature would help in debugging and refactoring config files! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That’s an interesting idea, but we aren’t making any further changes to the current configuration system as we work on replacing it. The new config system uses regular import/require statements, so you easily figure out where rules come from. |
Beta Was this translation helpful? Give feedback.
That’s an interesting idea, but we aren’t making any further changes to the current configuration system as we work on replacing it. The new config system uses regular import/require statements, so you easily figure out where rules come from.