{"id":18734319,"url":"https://github.com/threespot/prettier-config","last_synced_at":"2025-11-15T00:30:17.849Z","repository":{"id":57166401,"uuid":"182288116","full_name":"Threespot/prettier-config","owner":"Threespot","description":"Threespot’s Prettier config settings","archived":false,"fork":false,"pushed_at":"2021-09-23T15:45:00.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-28T16:38:57.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://prettier.io","language":"JavaScript","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/Threespot.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}},"created_at":"2019-04-19T15:44:02.000Z","updated_at":"2021-09-23T15:45:02.000Z","dependencies_parsed_at":"2022-08-30T14:10:31.428Z","dependency_job_id":null,"html_url":"https://github.com/Threespot/prettier-config","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/Threespot%2Fprettier-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Threespot%2Fprettier-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Threespot%2Fprettier-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Threespot%2Fprettier-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Threespot","download_url":"https://codeload.github.com/Threespot/prettier-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605746,"owners_count":19667111,"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-11-07T15:12:59.594Z","updated_at":"2025-11-15T00:30:17.778Z","avatar_url":"https://github.com/Threespot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prettier-config\nThreespot’s shareable config for [Prettier](https://prettier.io/)\n\n## Install\n\nUsing `yarn`:\n\n```bash\n$ yarn add --dev @threespot/prettier-config\n```\n\nUsing `npm`:\n```bash\n$ npm install --save-dev @threespot/prettier-config\n```\n\nTo enable rules you will have to add the key/value pair `\"prettier\": \"@threespot/prettier-config\"` to your root level `package.json` file.\n\nIf you don't want to add it to your `package.json` file, visit [prettier's documentation on shareable configuration](https://prettier.io/docs/en/configuration.html#sharing-configurations) for other options\n\n## Integrating Prettier to your editor for onSave capabilities\nInstead of using prettier's CLI to format your code, you can integrate prettier into your text editor to format your code on save. (recommended)\n\n[Instructions for integrating prettier to your specific text editor.](https://prettier.io/docs/en/editors.html)\n\n## Batch format via CLI\n\nTo use the CLI batch script you will have to [install prettier](https://prettier.io/docs/en/install.html) as a devDependency.\n\nNote: The batching process formats EVERYTHING except for JavaScript files located in node_modules. We recommend whitelisting the files you want prettier to format via `.prettierignore`. You can view an example of the whitelisting pattern in this repo: `.example.prettierignore`. \n\n1. Check your git history to ensure that it is clean\n2. Install `@threespot/prettier-config`\n3. Whitelist the files you want the format to alter in your `.prettierignore` file.\n4. Add this script to your `package.json`:\n\n    `prettier-format-all: npx prettier --config-precedence prefer-file --write \\\"**/*.js\\\"`\n    \n    Alternatively you can run: `yarn run prettier-format-all` or `npm run prettier-format-all` in the CLI.\n\n5. Commit all the formatted files into a single commit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreespot%2Fprettier-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthreespot%2Fprettier-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthreespot%2Fprettier-config/lists"}