Skip to content

Compatibility with @shopify/prettier-plugin-liquid #108

@codebaas

Description

@codebaas

The compatibility with @shopify/prettier-plugin-liquid doesn't work right. The follow code will not be formatted. When you use the liquid-html parser. Only with the html parser

<a class="sm:p-0 p-4" href="https://www.example.com">Example</a>
<a class="p-4 sm:p-0" href="https://www.example.com">Example</a>

Prettier config

{
  "plugins": ["@shopify/prettier-plugin-liquid", "prettier-plugin-tailwindcss"],
  "pluginSearchDirs": false,
  "parser": "liquid-html"
}

What version of prettier-plugin-tailwindcss are you using?
0.2.0

What version of @shopify/prettier-plugin-liquid are you using?
1.0.0-rc.2 and 0.4.3 (tested both)

What version of Tailwind CSS are you using?
3.2.4

What version of Node.js are you using?
v18.12.1

What package manager are you using?
NPM

What operating system are you using?
Mac os

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions