{"id":44213330,"url":"https://github.com/peerigon/configs","last_synced_at":"2026-06-27T03:01:34.450Z","repository":{"id":261325449,"uuid":"870753846","full_name":"peerigon/configs","owner":"peerigon","description":"Best practice configs for ESLint, Prettier, TypeScript \u0026 friends. By Peerigon.","archived":false,"fork":false,"pushed_at":"2026-06-24T11:34:57.000Z","size":2239,"stargazers_count":4,"open_issues_count":22,"forks_count":0,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-06-24T13:20:58.751Z","etag":null,"topics":[],"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/peerigon.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2024-10-10T15:51:49.000Z","updated_at":"2026-04-11T22:50:03.000Z","dependencies_parsed_at":"2024-11-05T23:47:14.476Z","dependency_job_id":"9da44201-f6d0-4a63-8ad4-053d66c3ef47","html_url":"https://github.com/peerigon/configs","commit_stats":null,"previous_names":["peerigon/configs"],"tags_count":102,"template":false,"template_full_name":null,"purl":"pkg:github/peerigon/configs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerigon%2Fconfigs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerigon%2Fconfigs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerigon%2Fconfigs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerigon%2Fconfigs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peerigon","download_url":"https://codeload.github.com/peerigon/configs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peerigon%2Fconfigs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34839888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"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":"2026-02-10T01:10:48.933Z","updated_at":"2026-06-27T03:01:34.442Z","avatar_url":"https://github.com/peerigon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# configs\n\n**Best practice configs for [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/) \u0026 friends. By [Peerigon](https://www.peerigon.com/).**\n\n[![Version on NPM](https://img.shields.io/npm/v/@peerigon/configs?style=for-the-badge)](https://www.npmjs.com/package/@peerigon/configs)\n[![Version on JSR](https://img.shields.io/jsr/v/@peerigon/configs?style=for-the-badge)](https://jsr.io/@peerigon/configs)\n[![Semantically released](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge)](https://github.com/semantic-release/semantic-release)\n[![Monthly downloads on NPM](https://img.shields.io/npm/dm/@peerigon/configs?style=for-the-badge)](https://www.npmjs.com/package/@peerigon/configs)\u003cbr\u003e\n[![License](https://img.shields.io/npm/l/@peerigon/configs?style=for-the-badge)](./LICENSE)\n\n## Installation\n\n```sh\nnpm install @peerigon/configs  --save-dev\n```\n\nThis package requires Node.js 22 or newer.\n\nAlso checkout the instructions for each respective config:\n\n- [ESLint](/eslint/README.md)\n- [Prettier](/prettier/README.md)\n- [TypeScript](/typescript/README.md)\n- [Semantic release](/semantic-release/README.md)\n- [VSCode](/.vscode/README.md)\n\n### AI\n\nFurthermore, this package also contains [rules and instructions for AI coding agents](./ai/README.md) that are based on the configurations.\n\nIf you want your AI coding agent to stick to our configs and coding principles, put this in your project-specific rules file (like `CLAUDE.md`, `.cursor/rules.mdc`, etc.):\n\n```md\n**Important**: You **must** follow [these rules](./node_modules/@peerigon/configs/ai/rules.mdc) and its language-specific rules referenced in that file.\n```\n\n## Philosophy\n\nLinting, formatting and type-checking rules are always a balance between:\n\n- ease of reading\n- ease of refactoring\n- ease of writing.\n\nWe think that:\n\n- code is read more often than refactored\n- and refactored more often than written from scratch.\n\nOur configs have been designed with these assumptions in mind.\n\n### Formatting\n\nFormatting should follow the community standard. Our config is therefore based on Prettier's default config. Besides that it also:\n\n- sorts `import` statements\n- formats JSDoc comments\n- formats and sorts `package.json` fields\n- formats and sorts CSS properties\n- sorts Tailwind CSS class names\n\nThis makes git diffs smaller and reviewing them more focussed.\n\n### Linting\n\nLinting should mostly catch bugs in the control flow and prevent security issues. Furthermore, it should enforce a modern, idiomatic and consistent code style that is easy to read and to refactor.\n\nHowever, it should **not** nit-pick on formatting or favor certain language features where other options are equally ok. Every rule must be legitimized by objective criteria. A simple “I find it easier to read” is not enough.\n\nOur linting rules:\n\n- are mostly based on recommended sets\n- use type information to catch logic bugs\n- highlight a11y problems\n- are less strict in tests\n\n### Type-checking\n\nType-checking should be rather strict because it is the foundation for safe and sound refactorings. If type-checking is too loose, it may lull the developer into a false sense of security. It should also prevent out-of-bounds errors when accessing arrays or objects.\n\nFor highly dynamic code or incompatible types, local exceptions to type safety and escape hatches need to be possible.\n\n## License\n\nMIT\n\n## Sponsors\n\n[\u003cimg src=\"https://assets.peerigon.com/peerigon/logo/peerigon-logo-flat-spinat.png\" width=\"150\" /\u003e](https://peerigon.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeerigon%2Fconfigs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeerigon%2Fconfigs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeerigon%2Fconfigs/lists"}