slomkowski / nginx-config-formatter

nginx config file formatter/beautifier written in Python with no additional dependencies.
Apache License 2.0
380 stars 64 forks source link

Respect editorconfig #28

Open muuvmuuv opened 1 year ago

muuvmuuv commented 1 year ago

It would be cool if while formatting it could use editorconfig settings.

slomkowski commented 1 year ago

This is good idea! I looked at the EditorConfig specification and properties match the structure of nginx config file. I'll only accept solution which doesn't use 3rd-party libraries, since I want to keep nginxfmt as portable as possible.

@muuvmuuv are you willing to implement this feature?

muuvmuuv commented 1 year ago

Not yet, but had a look, there is https://pypi.org/project/EditorConfig/#description which works. But some works needs to be done for it to be ready and I don't know if you want dependencies: