{"id":15077855,"url":"https://github.com/prettier/plugin-haml","last_synced_at":"2025-10-05T12:31:49.966Z","repository":{"id":57138014,"uuid":"292954154","full_name":"prettier/plugin-haml","owner":"prettier","description":"Plugin for the HAML template language","archived":true,"fork":false,"pushed_at":"2020-10-28T16:47:29.000Z","size":112,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-29T22:37:34.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/prettier.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"kddeisz"}},"created_at":"2020-09-04T21:56:34.000Z","updated_at":"2023-01-28T11:13:33.000Z","dependencies_parsed_at":"2022-08-22T20:50:18.069Z","dependency_job_id":null,"html_url":"https://github.com/prettier/plugin-haml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-haml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-haml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-haml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prettier%2Fplugin-haml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prettier","download_url":"https://codeload.github.com/prettier/plugin-haml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235375307,"owners_count":18979854,"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":[],"created_at":"2024-09-25T04:33:09.077Z","updated_at":"2025-10-05T12:31:44.657Z","avatar_url":"https://github.com/prettier.png","language":"JavaScript","funding_links":["https://github.com/sponsors/kddeisz"],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003ePrettier for HAML\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://gitter.im/jlongster/prettier\"\u003e\n    \u003cimg alt=\"Gitter\" src=\"https://img.shields.io/gitter/room/jlongster/prettier.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/prettier/plugin-haml/actions\"\u003e\n    \u003cimg alt=\"GitHub Actions\" src=\"https://img.shields.io/github/workflow/status/prettier/plugin-haml/Main?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@prettier/plugin-haml\"\u003e\n    \u003cimg alt=\"NPM Version\" src=\"https://img.shields.io/npm/v/@prettier/plugin-haml.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"#badge\"\u003e\n    \u003cimg alt=\"code style: prettier\" src=\"https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/PrettierCode\"\u003e\n    \u003cimg alt=\"Follow+Prettier+on+Twitter\" src=\"https://img.shields.io/twitter/follow/prettiercode.svg?label=follow+prettier\u0026style=flat-square\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n`@prettier/plugin-haml` is a [prettier](https://prettier.io/) plugin for the HAML template language. `prettier` is an opinionated code formatter that supports multiple languages and integrates with most editors. The idea is to eliminate discussions of style in code review and allow developers to get back to thinking about code design instead.\n\n## Getting started\n\nTo run `prettier` with the HAML plugin, you're going to need [`ruby`](https://www.ruby-lang.org/en/documentation/installation/) and [`node`](https://nodejs.org/en/download/) (version `8.3` or newer).\n\nIf you're using the `npm` CLI, then add the plugin by:\n\n```bash\nnpm install --save-dev prettier @prettier/plugin-haml\n```\n\nOr if you're using `yarn`, then add the plugin by:\n\n```bash\nyarn add --dev prettier @prettier/plugin-haml\n```\n\nThe `prettier` executable is now installed and ready for use:\n\n```bash\n./node_modules/.bin/prettier --write '**/*.haml'\n```\n\n## Configuration\n\nBelow are the options that `@prettier/plugin-haml` currently supports:\n\n| API Option      | CLI Option         | Default | Description                                                                                         |\n| --------------- | ------------------ | :-----: | --------------------------------------------------------------------------------------------------- |\n| `printWidth`    | `--print-width`    |  `80`   | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#print-width)).    |\n| `requirePragma` | `--require-pragma` | `false` | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#require-pragma)). |\n| `tabWidth`      | `--tab-width`      |   `2`   | Same as in Prettier ([see prettier docs](https://prettier.io/docs/en/options.html#tab-width))       |\n\nAny of these can be added to your existing [prettier configuration\nfile](https://prettier.io/docs/en/configuration.html). For example:\n\n```json\n{\n  \"printWidth\": 120\n}\n```\n\nOr, they can be passed to `prettier` as arguments:\n\n```bash\nprettier --print-width 120 --write '**/*.haml'\n```\n\n## Contributing\n\nCheck out our [contributing guide](CONTRIBUTING.md). Bug reports and pull requests are welcome on GitHub at https://github.com/prettier/plugin-haml.\n\n## License\n\nThe package is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettier%2Fplugin-haml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprettier%2Fplugin-haml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprettier%2Fplugin-haml/lists"}