{"id":15287881,"url":"https://github.com/hugomods/prettier-config","last_synced_at":"2026-02-01T16:33:13.071Z","repository":{"id":241257137,"uuid":"804706758","full_name":"hugomods/prettier-config","owner":"hugomods","description":"Prettier config for Hugo for formatting HTML templates, Markdown, JSON, TOML and YAML","archived":false,"fork":false,"pushed_at":"2026-01-15T02:16:20.000Z","size":34,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T08:39:37.790Z","etag":null,"topics":["html","hugo","json","markdown","prettier","toml","yaml"],"latest_commit_sha":null,"homepage":"https://hugomods.com/","language":null,"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/hugomods.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"razonyang","custom":["https://paypal.me/razonyang"]}},"created_at":"2024-05-23T05:37:29.000Z","updated_at":"2026-01-15T02:15:39.000Z","dependencies_parsed_at":"2025-07-10T12:37:11.608Z","dependency_job_id":"aaf0debd-598f-4a41-a67f-459c5c1478d0","html_url":"https://github.com/hugomods/prettier-config","commit_stats":null,"previous_names":["hugomods/prettier-config"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hugomods/prettier-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomods%2Fprettier-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomods%2Fprettier-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomods%2Fprettier-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomods%2Fprettier-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugomods","download_url":"https://codeload.github.com/hugomods/prettier-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugomods%2Fprettier-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28982772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T16:29:42.054Z","status":"ssl_error","status_checked_at":"2026-02-01T16:29:41.428Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["html","hugo","json","markdown","prettier","toml","yaml"],"created_at":"2024-09-30T15:39:20.211Z","updated_at":"2026-02-01T16:33:13.054Z","avatar_url":"https://github.com/hugomods.png","language":null,"funding_links":["https://github.com/sponsors/razonyang","https://paypal.me/razonyang"],"categories":[],"sub_categories":[],"readme":"# HugoMods Prettier Config\n\nThis is a Prettier [config](https://github.com/hugomods/prettier-config/blob/main/index.json) for Hugo to format HTML templates, Markdown files, data files, i18n files and so on.\n\n[![License](https://flat.badgen.net/github/license/hugomods/prettier-config)](https://github.com/hugomods/prettier-config/blob/main/LICENSE)\n[![Version](https://flat.badgen.net/npm/v/@hugomods/prettier-config)](https://www.npmjs.com/package/@hugomods/prettier-config)\n[![Downloads](https://flat.badgen.net/npm/dt/@hugomods/prettier-config)](https://www.npmjs.com/package/@hugomods/prettier-config)\n\n## Installation\n\n```sh\nnpm i -D @hugomods/prettier-config\n```\n\n## Configuration\n\nConfigure the following settings on `package.json`.\n\n```json\n{\n  \"prettier\": \"@hugomods/prettier-config\",\n  \"scripts\": {\n    \"lint:prettier\": \"prettier . --check\",\n    \"lint:prettier:fix\": \"prettier . -w\"\n  }\n}\n```\n\n## Scripts\n\n### Check If Files Is Formatted Correctly\n\n```sh\nnpm run lint:prettier\n```\n\n### Format Files In Place\n\n```sh\nnpm run lint:prettier:fix\n```\n\n## GitHub Actions\n\nTo check if files are formatted correctly via GitHub Actions, you can create a workflow as follows, takes `.github/workflows/lint.yml` as an example.\n\n```yaml\nname: lint\n\non:\n  push:\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version: 20\n      - run: npm ci\n      - run: npm run lint:prettier\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugomods%2Fprettier-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugomods%2Fprettier-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugomods%2Fprettier-config/lists"}