xo icon indicating copy to clipboard operation
xo copied to clipboard

Pick up customization from .editorconfig?

Open michaek opened this issue 7 years ago • 1 comments

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!

michaek avatar Oct 04 '16 21:10 michaek

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.

jednano avatar Aug 13 '19 15:08 jednano

I think there are two ways to go around this:

  • creating eslint-config-editorconfig if it doesn't yet exist and then extend 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.

fregante avatar Jan 04 '23 09:01 fregante