language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

💡 RFC: EditorConfig compatibility

Open cdtut opened this issue 2 years ago • 1 comments

Background & Motivation

EditorConfig is very convenient standard for setting indent style and to trim trailing whitespace to do minimal formatting during saving. It is also standard that work in lots of editors.

Can new setting be added to disable prettier formatting? Only way to disable it is disable all formatting. But then have to spend lots of time changing indent and trim trailing whitespace in manual way because no formatting is possible.

If new setting is there then it is possible to disable prettier but EditorConfig extension can still do its useful formatting which helps a lot.

Proposed Solution

Possible solutions

New setting to disable prettier in astro files but compatible with EditorConfig settings.

Detailed Design

No response

Help make it happen!

  • [ ] I am willing to submit a PR to implement this change.
  • [ ] I am willing to submit a PR to implement this change, but would need some guidance.
  • [ ] I am not willing to submit a PR to implement this change.

cdtut avatar Dec 19 '23 21:12 cdtut

A similar thing happens to me, I want to keep my indentations to 2 spaces but the Astro plugin keeps formatting it to 4 spaces. Seems to ignore the tab_width setting even though Prettier documentation explicitly says that is supported here

rogama25 avatar Feb 10 '24 13:02 rogama25