{"id":23099987,"url":"https://github.com/keep-network/prettier-config-keep","last_synced_at":"2026-01-18T22:01:22.815Z","repository":{"id":48562941,"uuid":"366043222","full_name":"keep-network/prettier-config-keep","owner":"keep-network","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-20T09:30:14.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-03T20:43:55.832Z","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/keep-network.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}},"created_at":"2021-05-10T12:58:02.000Z","updated_at":"2021-07-20T09:29:54.000Z","dependencies_parsed_at":"2022-09-12T23:22:54.654Z","dependency_job_id":null,"html_url":"https://github.com/keep-network/prettier-config-keep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/keep-network/prettier-config-keep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fprettier-config-keep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fprettier-config-keep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fprettier-config-keep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fprettier-config-keep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keep-network","download_url":"https://codeload.github.com/keep-network/prettier-config-keep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keep-network%2Fprettier-config-keep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28552116,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T20:59:07.572Z","status":"ssl_error","status_checked_at":"2026-01-18T20:59:02.799Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-12-16T23:29:22.950Z","updated_at":"2026-01-18T22:01:22.799Z","avatar_url":"https://github.com/keep-network.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# prettier-config-keep\n\nhttps://prettier.io/[Prettier] code formatter configuration shared across Keep\nNetwork projects.\n\n## Usage\n\n### Setting up a project\n\n1. Install dependencies:\n+\n```sh\n  npm install --save-dev github:keep-network/prettier-config-keep prettier\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\": \"@keep-network/prettier-config-keep\"\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`:\n+\n```json\n\"scripts\": {\n  \"format\": \"prettier --check .\",\n  \"format:fix\": \"prettier --write .\"\n}\n```\n\n4. Run `npm run format` or `npm run format:fix`\n\n### Plugins\n\nTo handle `*.sh` or `*.toml` files you need to install dedicated plugins:\n\n- for `sh`: `npm install --save-dev prettier-plugin-sh`\n- for `toml`: `npm install --save-dev prettier-plugin-toml`\n\nAnd configure the plugins usage in `.prettierrc.js`, e.g.:\n\n```js\nmodule.exports = {\n  ...require(\"@keep-network/prettier-config-keep\"),\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 formatting\"\n  entry: /usr/bin/env bash -c \"npm run format\"\n  exclude: '^staker-rewards\\/|^solidity\\/'\n  language: script\n  description: \"Checks files formatting with prettier\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-network%2Fprettier-config-keep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeep-network%2Fprettier-config-keep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeep-network%2Fprettier-config-keep/lists"}