Shopify / prettier-plugin-liquid

Prettier Liquid/HTML plugin
https://npm.im/@shopify/prettier-plugin-liquid
MIT License
93 stars 15 forks source link

Add prettier-ignore comment support inside `{% liquid %}` tags. #48

Closed charlespwd closed 1 year ago

charlespwd commented 2 years ago

Describe the solution you'd like The prettier-ignore comment should ignore the next node inside a liquid tag.

{% liquid
  # prettier-ignore
  assign x =    "a" | split: "..." 
%}

Checklist

Additional context I'm not sure that's really desired or will ever be necessary? Since we won't break lines inside a liquid tag and would only make sure that strings are of the correct type? Might be if we don't want to change index access to dot access...

charlespwd commented 2 years ago

Do we need that? We're never going to break line and it would only ever target the next line (or conditional)...

charlespwd commented 2 years ago

Do we need that? We're never going to break line and it would only ever target the next line (or conditional)...