{"id":21804862,"url":"https://github.com/pez/prettier-plugin-clojure","last_synced_at":"2025-10-05T19:58:21.145Z","repository":{"id":65352807,"uuid":"563364491","full_name":"PEZ/prettier-plugin-clojure","owner":"PEZ","description":"An (almost) indentation-only, non-configurable, Prettier Plugin for Clojure and ClojureScript (and any sufficiently similar implementations).","archived":false,"fork":false,"pushed_at":"2022-11-08T14:10:23.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-25T20:31:12.436Z","etag":null,"topics":["clojure","clojurescript","formatter","prettier","prettier-plugin"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/PEZ.png","metadata":{"files":{"readme":"README.md","changelog":null,"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},"funding":{"github":["PEZ"]}},"created_at":"2022-11-08T13:13:44.000Z","updated_at":"2023-06-28T12:29:49.000Z","dependencies_parsed_at":"2023-01-21T16:01:35.406Z","dependency_job_id":null,"html_url":"https://github.com/PEZ/prettier-plugin-clojure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PEZ/prettier-plugin-clojure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fprettier-plugin-clojure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fprettier-plugin-clojure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fprettier-plugin-clojure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fprettier-plugin-clojure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PEZ","download_url":"https://codeload.github.com/PEZ/prettier-plugin-clojure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PEZ%2Fprettier-plugin-clojure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278510917,"owners_count":25998997,"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-05T02:00:06.059Z","response_time":54,"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":["clojure","clojurescript","formatter","prettier","prettier-plugin"],"created_at":"2024-11-27T11:57:10.880Z","updated_at":"2025-10-05T19:58:21.127Z","avatar_url":"https://github.com/PEZ.png","language":"Clojure","readme":"# @cospaia/prettier-plugin-clojure\n\nAn (almost) indentation-only, non-configurable, [Prettier](https://prettier.io/) Plugin for [Clojure](https://clojure.org) and [ClojureScript](https://clojurescript.org) (and any sufficiently similar implementations).\n\nThe plugin really is basic. It will format the code using [cljfmt](https://github.com/weavejester/cljfmt) defaults, without letting you configure anything. This means that mostly indentation will be applied, but there is also some folding of the bracket trail and trimming of whitespace inside the brackets, going on.\n\nIs that really useful? I need it for a project, so, yes, at least to someone. 😄\n\n## Using it\n\nIn the project you want to use it, you first:\n\n0. `npm i prettier @cospaia/prettier-plugin-clojure`\n\nThen you can do things like:\n\n``` sh\n$ npx prettier \u003cclojure-file | markdown-file-w-fenced-clojure-block\u003e\n```\n\ne.g:\n\n```\n$ npx prettier ./test-data/some_code.clj\n$ npx prettier ./test-data/some-fenced-code.md\n```\n\n## Testing it\n\nIn this project:\n\n0. `npm i`\n0. `npm run builddist`\n0. `npx prettier --plugin . ./test-data/some_code.clj`\n0. `npx prettier --plugin . ./test-data/some-fenced-code.md`\n\nSee also [the test project](./prettier-clojure-test-project/).\n\n## Author\n\nPeter Strömberg, aka [PEZ](https://github.com/PEZ)\n\n## Built with\n\n* [ClojureScript](https://clojurescript.org)\n* [shadow-cljs](https://github.com/thheller/shadow-cljs)\n* [cljfmt](https://github.com/weavejester/cljfmt)\n\n## LICENSE\n\nMIT\n","funding_links":["https://github.com/sponsors/PEZ"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpez%2Fprettier-plugin-clojure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpez%2Fprettier-plugin-clojure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpez%2Fprettier-plugin-clojure/lists"}