{"id":20712907,"url":"https://github.com/thesis/prettier-config","last_synced_at":"2026-03-07T23:32:09.366Z","repository":{"id":46597304,"uuid":"412089245","full_name":"thesis/prettier-config","owner":"thesis","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-26T03:55:20.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-13T14:46:18.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/thesis.png","metadata":{"files":{"readme":"README.adoc","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-09-30T14:05:24.000Z","updated_at":"2021-10-06T11:26:54.000Z","dependencies_parsed_at":"2024-11-17T04:01:33.875Z","dependency_job_id":null,"html_url":"https://github.com/thesis/prettier-config","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thesis/prettier-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fprettier-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fprettier-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fprettier-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fprettier-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesis","download_url":"https://codeload.github.com/thesis/prettier-config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesis%2Fprettier-config/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30237329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T23:24:20.706Z","status":"ssl_error","status_checked_at":"2026-03-07T23:21:10.486Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2024-11-17T02:22:28.980Z","updated_at":"2026-03-07T23:32:09.262Z","avatar_url":"https://github.com/thesis.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# prettier-config\n\nhttps://prettier.io/[Prettier] code formatter configuration shared across Thesis projects.\n\n## Usage\n\n### Setting up a project\n\n1. Install dependencies:\n\n+\n```sh\n  yarn add --Dev github:thesis/prettier-config prettier\n```\n\n\n2. Configure prettier:\n+\nThe easiest way to configure prettier to use this configuration is to define \n`prettier` property in the project's `package.json`:\n+\n```json\n\"prettier\": \"@thesis/prettier-config\"\n```\n+\nFor more sophisticated configuration instead of adding this entry add a configuration\nfile (see: \u003c\u003cPlugins\u003e\u003e section).\n\n3. Define `scripts` property in `package.json`, e.g.:\n+\n```json\n\"scripts\": {\n  \"lint:config\": \"prettier -c '**/*.@(json|yaml|toml)'\",\n  \"lint:config:fix\": \"prettier -w '**/*.@(json|yaml|toml)'\",\n}\n```\n+\nFor `JavaScript` and `TypeScript` Thesis projects should use prettier-eslint integration in https://github.com/thesis/eslint-config[@thesis/eslint-config].\n\n4. Run `yarn lint:config` or `yarn lint:config:fix`\n\n### Plugins\n\nTo handle `*.sh` or `*.toml` files you need to install dedicated plugins:\n\n- for `sh`: `yarn add --Dev prettier-plugin-sh`\n- for `toml`: `yarn add --Dev prettier-plugin-toml`\n\nAnd configure the plugins usage in `.prettierrc.js`, e.g.:\n\n```js\nmodule.exports = {\n  ...require(\"@thesis/prettier-config\"),\n  plugins: [\"prettier-plugin-sh\", \"prettier-plugin-toml\"],\n}\n```\n\n### Adding a pre-commit hook\n\nThis solution is using https://pre-commit.com[pre-commit].\n\n```yaml\n- id: format\n  name: \"code config formatting\"\n  entry: /usr/bin/env bash -c \"npm run lint:config\"\n  language: script\n  description: \"Checks files formatting with prettier\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesis%2Fprettier-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesis%2Fprettier-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesis%2Fprettier-config/lists"}