Hi all,
how do you guys format your hubl code?
I use the officially recommended
prettier-plugin-hubl which formats the code quite well, but what it unfortunately also does, is replacing small parts of the code!
For example it replaces the square brackets and the index inside of an indexed array with a dot like this:
BEFORE:
{% set slug = row.values[6] %}
AFTER:
{% set slug = row.values. %}
That is of course unacceptable.
I use the recommended plugin version 0.2.5 in combination with prettier 2.8.8.
I also tried newer (experimental) versions, where this problem has been fixed, but then i encountered several other critical code-replacements.
I don't know how to deal with this. No auto-formatting is not an option.