{"id":20294264,"url":"https://github.com/teambit/custom-prettier-config","last_synced_at":"2026-05-22T16:34:08.899Z","repository":{"id":80427404,"uuid":"385603788","full_name":"teambit/custom-prettier-config","owner":"teambit","description":"An example repo for customizing prettier config in a custom env","archived":false,"fork":false,"pushed_at":"2021-07-13T13:11:39.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-04T05:29:37.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teambit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-13T12:55:14.000Z","updated_at":"2021-07-17T01:22:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0a44657-5bc7-460e-9d6d-24f0b323467c","html_url":"https://github.com/teambit/custom-prettier-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/teambit/custom-prettier-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-prettier-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-prettier-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-prettier-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-prettier-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teambit","download_url":"https://codeload.github.com/teambit/custom-prettier-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teambit%2Fcustom-prettier-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33354036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"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":"2024-11-14T15:28:38.988Z","updated_at":"2026-05-22T16:34:08.872Z","avatar_url":"https://github.com/teambit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# custom-prettier-config\nAn example repo for customizing prettier config in a custom env\n\n## Structure\nIn this repo we created a new custom-env using `bit create react-env custom-env` and a simple react component using `bit create react-component ui/button`;\n\nThe `ui/button` component is configured to use the `custom-env` (see in the workspace.jsonc file).\n\n## custom-env\nThe custom env is using the new API of `usePrettier` (see more details in (this pr)[https://github.com/teambit/bit/pull/4568])\nIt's mutating the default react env prettier config, and changing the tab width from the default 2 to 4.\n\n## Run this project\n```\ngit clone https://github.com/teambit/custom-prettier-config.git\nbit install\nbit compile\nbit format --check\n```\n\nThe `bit format --check` will show an error in the button files, as they are originally formatted with the default tab width 2. \nRunning `bit format` (no `--check`) will re-format them to use tab width 4.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteambit%2Fcustom-prettier-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteambit%2Fcustom-prettier-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteambit%2Fcustom-prettier-config/lists"}