{"id":13880747,"url":"https://github.com/Shopify/prettier-plugin-liquid","last_synced_at":"2025-07-16T17:31:01.814Z","repository":{"id":37999699,"uuid":"436026900","full_name":"Shopify/prettier-plugin-liquid","owner":"Shopify","description":"Prettier Liquid/HTML plugin","archived":true,"fork":false,"pushed_at":"2024-06-20T17:22:16.000Z","size":2171,"stargazers_count":98,"open_issues_count":0,"forks_count":16,"subscribers_count":233,"default_branch":"main","last_synced_at":"2025-07-10T12:48:38.646Z","etag":null,"topics":["autoformat","beautifier","formatter","liquid","prettier"],"latest_commit_sha":null,"homepage":"https://npm.im/@shopify/prettier-plugin-liquid","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shopify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-07T21:10:00.000Z","updated_at":"2025-07-06T14:55:21.000Z","dependencies_parsed_at":"2023-02-10T17:00:50.566Z","dependency_job_id":"c76ce83d-3e95-4dd0-a144-a5fe1aa06786","html_url":"https://github.com/Shopify/prettier-plugin-liquid","commit_stats":{"total_commits":375,"total_committers":12,"mean_commits":31.25,"dds":"0.053333333333333344","last_synced_commit":"b8695467bd95e4b55246c8b55d518e37e731463f"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/Shopify/prettier-plugin-liquid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fprettier-plugin-liquid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fprettier-plugin-liquid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fprettier-plugin-liquid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fprettier-plugin-liquid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shopify","download_url":"https://codeload.github.com/Shopify/prettier-plugin-liquid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shopify%2Fprettier-plugin-liquid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265527544,"owners_count":23782480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoformat","beautifier","formatter","liquid","prettier"],"created_at":"2024-08-06T08:03:26.836Z","updated_at":"2025-07-16T17:31:00.091Z","avatar_url":"https://github.com/Shopify.png","language":"TypeScript","readme":"\u003e **Warning**\n\u003e\n\u003e This project has been absorbed by and moved to [Shopify/theme-tools](https://github.com/Shopify/theme-tools).\n\n\u003ch1 align=\"center\" style=\"position: relative;\" \u003e\n  \u003cbr\u003e\n    \u003cimg src=\"https://github.com/Shopify/theme-check-vscode/blob/main/images/shopify_glyph.png?raw=true\" alt=\"logo\" width=\"141\" height=\"160\"\u003e\n  \u003cbr\u003e\n  Shopify Liquid Prettier Plugin\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@shopify/prettier-plugin-liquid\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@shopify/prettier-plugin-liquid.svg?sanitize=true\" alt=\"Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Shopify/prettier-plugin-liquid/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@shopify/prettier-plugin-liquid.svg?sanitize=true\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Shopify/prettier-plugin-liquid-prototype/actions/workflows/ci.yml\"\u003e\u003cimg alt=\"CI\" src=\"https://github.com/Shopify/prettier-plugin-liquid-prototype/actions/workflows/ci.yml/badge.svg\"\u003e\u003c/a\u003e\n  \u003c!--\n    \u003ca href=\"https://npmcharts.com/compare/@shopify/prettier-plugin-liquid?minimal=true\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@shopify/prettier-plugin-liquid.svg?sanitize=true\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  --\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n🗣 [Slack](https://join.slack.com/t/shopifypartners/shared_invite/zt-sdr2quab-mGkzkttZ2hnVm0~8noSyvw) | 💬 [Discussions](https://github.com/Shopify/prettier-plugin-liquid/discussions) | 📝 [Changelog](./CHANGELOG.md)\n\n\u003c/div\u003e\n\n[Prettier](https://prettier.io) is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.\n\n![demo](https://github.com/Shopify/prettier-plugin-liquid/blob/main/docs/demo.gif?raw=true)\n\n## Can this be used in production?\n\nYes! It's also available in the [Online Store Code Editor](https://shopify.dev/themes/tools/code-editor#formatting-theme-code).\n\n## Installation\n\n```bash\n# with npm\nnpm install --save-dev prettier @shopify/prettier-plugin-liquid\n\n# with yarn\nyarn add --dev prettier @shopify/prettier-plugin-liquid\n```\n\nFor Prettier version 3 and above, the plugin must also be declared in the [configuration](https://prettier.io/docs/en/configuration.html).\n\n```\n{\n  \"plugins\": [\"@shopify/prettier-plugin-liquid\"]\n}\n```\n\n## Usage\n\nSee our [Wiki](https://github.com/Shopify/prettier-plugin-liquid/wiki) pages on the subject:\n\n- [In the terminal](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-your-terminal) (with Node.js)\n- [In the browser](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-the-browser)\n- [In your editor](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-your-editor)\n- [In a CI workflow](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-in-CI)\n- [As a pre-commit hook](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-as-a-pre-commit-hook)\n- [With a bundler](https://github.com/shopify/prettier-plugin-liquid/wiki/Use-it-with-a-bundler)\n\n## Playground\n\nYou can try it out in your browser in the [playground](https://shopify.github.io/prettier-plugin-liquid/).\n\n## Configuration\n\nPrettier for Liquid supports the following options.\n\n| Name                        | Default   | Description                                                                                                                                                              |\n| ------------------          | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `printWidth`                | `120`     | Changed from Prettier's default (`80`) ([see prettier docs](https://prettier.io/docs/en/options.html#print-width))                                                       |\n| `tabWidth`                  | `2`       | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width))                                                                            |\n| `useTabs`                   | `false`   | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tabs))                                                                                 |\n| `singleQuote`               | `false`   | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#quotes))                                                                               |\n| `bracketSameLine`           | `false`   | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#bracket-line))                                                                         |\n| `liquidSingleQuote`         | `true`    | Use single quotes instead of double quotes in Liquid tag and objects (since v0.2.0).                                                                                     |\n| `embeddedSingleQuote`       | `true`    | Use single quotes instead of double quotes in embedded languages (JavaScript, CSS, TypeScript inside `\u003cscript\u003e`, `\u003cstyle\u003e` or Liquid equivalent) (since v0.4.0).         |\n| `htmlWhitespaceSensitivity` | `css`     | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#html-whitespace-sensitivity))                                                          |\n| `singleLineLinkTags`        | `false`   | If set to `true`, will print `\u003clink\u003e` tags on a single line to remove clutter                                                                                            |\n| `indentSchema`              | `false`   | If set to `true`, will indent the contents of the `{% schema %}` tag                                                                                                     |\n\n## Ignoring code\n\nWe support the following comments (either via HTML or Liquid comments):\n\n- `prettier-ignore`\n- `prettier-ignore-attribute`\n- `prettier-ignore-attributes` (alias)\n\nThey target the next node in the tree. Unparseable code can't be ignored and will throw an error.\n\n```liquid\n{% # prettier-ignore %}\n\u003cdiv         class=\"x\"       \u003ehello world\u003c/div            \u003e\n\n{% # prettier-ignore-attributes %}\n\u003cdiv\n  [[#if Condition]]\n    class=\"a b c\"\n  [[/if ]]\n\u003e\u003c/div\u003e\n```\n\n## Known issues\n\nTake a look at our [known issues](./KNOWN_ISSUES.md) and [open issues](https://github.com/Shopify/prettier-plugin-liquid/issues).\n\n## Contributing\n\n[Read our contributing guide](CONTRIBUTING.md)\n\n## License\n\nMIT.\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShopify%2Fprettier-plugin-liquid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShopify%2Fprettier-plugin-liquid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShopify%2Fprettier-plugin-liquid/lists"}