{"id":25859124,"url":"https://github.com/sajmoni/prettier-config-one","last_synced_at":"2026-02-16T20:33:57.419Z","repository":{"id":65381331,"uuid":"364842925","full_name":"sajmoni/prettier-config-one","owner":"sajmoni","description":"My recommended prettier config","archived":false,"fork":false,"pushed_at":"2024-02-04T10:41:29.000Z","size":705,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T11:51:07.460Z","etag":null,"topics":["prettier","prettier-config"],"latest_commit_sha":null,"homepage":"","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/sajmoni.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":"2021-05-06T08:42:57.000Z","updated_at":"2023-12-20T16:05:50.000Z","dependencies_parsed_at":"2023-12-20T17:28:43.374Z","dependency_job_id":"93ec1e1b-0acb-42b8-9679-de6776546d13","html_url":"https://github.com/sajmoni/prettier-config-one","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"89831e13d30c74561e8022af7a4a2a8cccc61039"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sajmoni/prettier-config-one","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajmoni%2Fprettier-config-one","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajmoni%2Fprettier-config-one/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajmoni%2Fprettier-config-one/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajmoni%2Fprettier-config-one/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sajmoni","download_url":"https://codeload.github.com/sajmoni/prettier-config-one/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajmoni%2Fprettier-config-one/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29517613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["prettier","prettier-config"],"created_at":"2025-03-01T20:39:40.569Z","updated_at":"2026-02-16T20:33:57.392Z","avatar_url":"https://github.com/sajmoni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prettier-config-one\n\n\u003e My recommended prettier config\n\n## Options\n\n```yml\nsemi: false\n```\n\n_Why?_\n\n- Less visual clutter\n- Easier to move code around\n- Semicolons are not needed 99%+ of the time, and Prettier can insert them when they are\n\n---\n\n```yml\nsingleQuote: true\n```\n\n_Why?_\n\n- Slightly less visual clutter\n- Doesn't require pressing \"shift\"\n- It's in the [Google style guide](https://google.github.io/styleguide/jsguide.html#features-strings-use-single-quotes)\n\n---\n\n```yml\njsxSingleQuote: true\n```\n\n_Why?_\n\n- Consistent with `singleQuote`\n\n---\n\n```yml\nsingleAttributePerLine: true\n```\n\n_Why?_\n\n- Better git diff. Adding or removing props won't affect unrelated ones\n- More consistent to always have props on new lines\n\n---\n\n```yml\nexperimentalTernaries: true\n```\n\n_Why?_\n\n- Supposedly better readability\n\n---\n\n## How to use\n\n### Automatic setup (recommended)\n\nUse [setup-prettier](https://github.com/sajmoni/setup-prettier) to automatically add `prettier` and this config\n\n```console\nnpx setup-prettier@latest\n```\n\n### Manual install\n\n```console\nnpm install --save-dev prettier-config-one\n```\n\nIn your package.json or prettier config:\n\n```json\n  \"prettier\": \"prettier-config-one\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajmoni%2Fprettier-config-one","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsajmoni%2Fprettier-config-one","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajmoni%2Fprettier-config-one/lists"}