-
Notifications
You must be signed in to change notification settings - Fork 15
Prettier v3 doesn't run on .liquid files unless specified #208
Comments
Yep that's a v3 breaking change from prettier unfortunately. I'm not happy with how they communicated it. Try adding this to your .prettierrc.json
|
Already have it in my config. {
"$schema": "https://json.schemastore.org/prettierrc.json",
"printWidth": 100,
"singleQuote": true,
"plugins": ["@shopify/prettier-plugin-liquid", "prettier-plugin-tailwindcss"],
"overrides": [
{
"files": ["**/*.liquid"],
"options": {
"singleQuote": false
}
}
]
} |
I otherwise have no idea. Couldn't find a meaningful API change from their docs that says we should be doing something different on our end. Did they hardcode a default pattern in v3? Doesn't seem to be anything about that in the migration docs either... |
Seems like a bug in Prettier. It semi-ignores my config file. Running prettier using |
Confirmed bug in prettier. Progress can be followed in this issue: prettier/prettier#15079 |
Just add this to settings.json in vscode:
This will also enable format on save. |
Any solution ? |
Should be working now. Just update your packages |
Describe the bug
In Prettier v2, it was possible to just use
prettier .
, and it would run on on all files, including.liquid
files.In Prettier v3, you have to use
prettier --write '**/*.liquid'
to make it run on.liquid
files.Debugging information
The text was updated successfully, but these errors were encountered: