{"id":31970493,"url":"https://github.com/hubspot/prettier-plugin-hubl","last_synced_at":"2025-10-14T19:15:49.334Z","repository":{"id":39851765,"uuid":"478718318","full_name":"HubSpot/prettier-plugin-hubl","owner":"HubSpot","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-23T02:23:00.000Z","size":886,"stargazers_count":25,"open_issues_count":16,"forks_count":5,"subscribers_count":122,"default_branch":"master","last_synced_at":"2025-10-10T09:34:13.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HubSpot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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":"2022-04-06T20:34:18.000Z","updated_at":"2025-10-03T22:27:17.000Z","dependencies_parsed_at":"2024-05-07T20:28:45.654Z","dependency_job_id":"04b9fd33-ad33-4874-82c7-d5c19ded5a31","html_url":"https://github.com/HubSpot/prettier-plugin-hubl","commit_stats":{"total_commits":123,"total_committers":2,"mean_commits":61.5,"dds":"0.44715447154471544","last_synced_commit":"d53d7dd1153b1bd41a47afaac6a1e71ac03eb185"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/HubSpot/prettier-plugin-hubl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fprettier-plugin-hubl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fprettier-plugin-hubl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fprettier-plugin-hubl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fprettier-plugin-hubl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HubSpot","download_url":"https://codeload.github.com/HubSpot/prettier-plugin-hubl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HubSpot%2Fprettier-plugin-hubl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020649,"owners_count":26086895,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-10-14T19:15:46.957Z","updated_at":"2025-10-14T19:15:49.329Z","avatar_url":"https://github.com/HubSpot.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prettier-plugin-hubl\n\nA Prettier plugin that formats HubL templates for use with the HubSpot CMS\n\n## Plugin status: Beta\n\nThis plugin is currently in active development. Bug reports and questions [are welcomed](https://github.com/HubSpot/prettier-plugin-hubl/issues).\n\n## Philosophy\n\nIn keeping with Prettier’s philosophy, this plugin is relatively opinionated and sometimes Prettier will prefer one syntax over another. For example:\n\n- `{{ foo is string_containing “bar” }}` will become `{{ foo is string_containing(“bar”) }}`\n- `a \u0026\u0026 b` will `become a and b`\n- `c || d` will become `c or d`\n\nIf you have a particular code-style opinion that you feel strongly about, feel free to [open an issue](https://github.com/HubSpot/prettier-plugin-hubl/issues/new) for review.\n\n## Installing\n\nYou can install this plugin directly from NPM by running:\n\n```bash\nnpm i @hubspot/prettier-plugin-hubl -D\n```\n\nIf you haven't already installed [prettier](https://prettier.io) you'll want to do that as well:\n\n```bash\nnpm i prettier -D\n```\n\n## Setup\n\n**Note**: Starting with Prettier 3.x, plugins must be explicitly listed in your Prettier configuration. Auto-discovery has been removed.\n\nIf you don't already have a prettier config file, create one:\n\n```json\n# .prettierrc.json\n{\n  \"plugins\": [\"@hubspot/prettier-plugin-hubl\"],\n  \"overrides\": [\n    {\n      \"files\": \"*.html\",\n      \"options\": {\n        \"parser\": \"hubl\"\n      }\n    }\n  ]\n}\n```\n\nRun prettier\n\n```bash\nnpx prettier --write '**/*.html'\n```\n\n## Troubleshooting Errors\n\nCheck under “Known Issues” to see if your error has been reported already. If not, feel free to [open up a new issue](https://github.com/HubSpot/prettier-plugin-hubl/issues/new). You can also review the expected formatting of different elements [here](./TYPE_DOCS.md).\n\n## Community\n\nYou can stay up to date with HubSpot CMS Boilerplate updates and discussions in the #hs-cms-boilerplate channel in the HubSpot Developer Slack.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspot%2Fprettier-plugin-hubl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubspot%2Fprettier-plugin-hubl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubspot%2Fprettier-plugin-hubl/lists"}