theme-tools
theme-tools copied to clipboard
JSON formatting issues with the Shopify Github Integration
Describe the bug
When using the shopify github integration, I am getting back file urls as an escaped string. Then when running prettier, it is removing the \
from the url.
Unformatted source
shopify:\/\/shop_images\/Logo_2bb829935e.webp
Expected output
shopify:\/\/shop_images\/Logo_2bb829935e.webp
Actual output
shopify://shop_images/Logo_2bb829935e.webp
Debugging information
- OS [e.g. Windows, Mac, Linux]
- Version [e.g. 0.1.0]
Additional context
Here is my prettier config:
//.prettierrc.json
{
"printWidth": 120,
"singleQuote": true,
"overrides": [
{
"files": "*.liquid",
"options": {
"singleQuote": false
}
}
],
"plugins": ["@shopify/prettier-plugin-liquid", "prettier-plugin-tailwindcss"]
}