This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
What to do with svg tags? #15
charlespwd
started this conversation in
Polls
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to honor our third principle, I'd like to open a discussion and gather your feedback.
Context
In the Dawn prettier demo, we got the following feedback:
To which I replied that I can think of four ways to solve this:
Option 1. Don't do anything
This issue can be solved by simply omitting the files from the prettier command regex.
That is, instead of running the following:
prettier --write '**/*.liquid'
Run the following:
Option 2. Special rule for svg-only Liquid files
If the file has only one node, and that node is an SVG element. Print as is.
Option 3. Never break svg attributes
Add an exception and never break svg attributes. Anywhere.
2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions