deno icon indicating copy to clipboard operation
deno copied to clipboard

feat(fmt): infer config from .editorconfig

Open Conaclos opened this issue 3 years ago • 1 comments

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.

Conaclos avatar May 24 '22 22:05 Conaclos

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.

XCanG avatar Oct 17 '24 21:10 XCanG

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.

maunzCache avatar Feb 23 '25 16:02 maunzCache