Today I was trying to use XO to lint Svelte files. It wasn't working, so I dug a little. Turns out, the extension(s)
option doesn't work as I expected, and I think there is more than one issue with it.
This is basically what the docs say about declaring file extensions: you can either pass one or more extension
(singular) options via CLI, or specify an array as extensions
(plural) in a config file. That's it.
This is what happens in reality:
{...configOptions, ...cliOptions}
. It means that both singular and plural aliases are allowed everywhere.Lines 240 to 244 in 2e39794
Line 216 in 2e39794
extensions
option passed from CLI, which makes it the only working option.Line 246 in 2e39794
And these are IMHO the problems of the current approach:
Plural CLI option
> Plural config option
> Singular CLI option
> Singular config option
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too