You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a formatter in a configuration (e.g. stylelint.config.js) is supported, we can simplify stylelint CLI arguments or specify a formatter via an environment variable. For example:
// stylelint.config.jsimportmyCustomFormatterfrom'my-custom-formatter';exportdefault{// A built-in formatter nameformatter: 'string',// | 'compact' | 'json' | ...// Or a path to a custom formatter moduleformatter: './path/to/my-custom-formatter.js',// Or a custom formatter moduleformatter: myCustomFormatter,rules: {/* ... */},};
It's possible to override the property by CLI arguments: --formatter or --custom-formatter
What is the problem you're trying to solve?
If a formatter in a configuration (e.g.
stylelint.config.js
) is supported, we can simplifystylelint
CLI arguments or specify a formatter via an environment variable. For example:Before:
stylelint a.css -f json stylelint b.css -f json # ...
After:
stylelint a.css stylelint b.css # ...
What solution would you like to see?
formatter
property in a configuration--formatter
or--custom-formatter
Background: #7617 (comment)
The text was updated successfully, but these errors were encountered: