[Suggestion] Support .editorconfig
Given that .editorconfig file provides some settings that are supported by stylua, it could be handy to read that file to avoid duplicating these settings.
I believe the way prettier does this is to allow an option to defer to the .editorconfig file. Would probably be a good option here as well.
Interesting idea, which might be nice to have.
I think I'll most likely support project-level editorconfig, rather than a global one, so that it is more noticeable what kind of settings are being used.
I believe the way prettier does this is to allow an option to defer to the
.editorconfigfile. Would probably be a good option here as well.
editorconfig provides libraries for several languages, so prettier probably used the one for js.
There seems to be a relatively new crate for parsing .editorconfig files which looks promising: https://github.com/TheDaemoness/ec4rs
This issue hasn't really been tackled yet since there wasn't great support for editorconfig files