fluid-project / fluid-lint-all

Consolidated linting logic free from any particular build technology
BSD 3-Clause "New" or "Revised" License
0 stars 5 forks source link

Provide a means for outputting the merged configuration for all the linters #20

Open jobara opened 3 years ago

jobara commented 3 years ago

Is your feature request related to a problem?

At the moment it's hard to determine what the exact configurations/rules each of the linters are using; especially when factoring extending from shareable configs like stylint-config-fluid and eslint-config-fluid.

Describe the solution you'd like

Provide an option to output all of the configurations to be used. It would help if there were links back to the docs for the specific linter rules, as it isn't always clear what those options are actually for just from the names.

stylint and eslint both provide options to print config stylelint --print-config and eslint --print-config

the-t-in-rtf commented 3 years ago

As I mentioned in the chat, ESLint's --print-config flag requires a path argument, so we'd need a little logic to help safely detect that. Turns out the same is true of stylelint's --print-config option.