xo
xo copied to clipboard
Pick up customization from .editorconfig?
It's great that there are so many ways to customize xo! I'm curious if you think it might be valuable for xo to check a present .editorconfig
(perhaps just the [*]
entry for simplicity) for overrides for options like "indent_size" and "indent_style" that would otherwise be configured in multiple places.
The main reason that I ask, rather than just accepting a tiny amount of duplicate configuration, is that I know you've shown some interest in using .editorconfig
files to ensure formatting consistency. :)
Thanks!
Some interest? He's an EditorConfig board member! 😄
I also agree that this feature should be implemented. It's something that Prettier does as well.
I think there are two ways to go around this:
- creating
eslint-config-editorconfig
if it doesn't yet exist and thenextend
it in XO - using XO’s own
--prettier
flag
Since this issue is now old enough for first grade, I'd guess it's not going to be picked up.