feat(fmt): infer config from .editorconfig
Hi!
Deno could rely on .editorconfig to determinate indent_style (space or tabs), indent_size, and max_line_length when they are not set in the deno's config file.
This is a feature supported by Prettier. Prettier supports also end_of_line and tab_width.
Note that an editorconfig file enables to change the configuration for different set of files.
I've been trying to use Deno 2.0 on an existed project, it already have setup around .editorconfig, but after looking through the docs I find out that Deno 2.0 seems to not detecting and using this file. I hope it will be implemented.
I think this is now more interesting as Deno based its rules on eslint (according to the docs) but eslint has deprecated those rules 2023, referring to prettier instead. I understand that deno might not want to integrate in xyz tools just to support everything. But it would be cool if there was an easy was to integrate other config files e.g. by providing some sort of a config loader plugin which replaces the deno default.