{"id":14978238,"url":"https://github.com/zignis/eslint-plugin-alignment","last_synced_at":"2026-02-08T17:33:20.784Z","repository":{"id":196884997,"uuid":"697344772","full_name":"zignis/eslint-plugin-alignment","owner":"zignis","description":"🗃️ Format and align objects, enums, interfaces, and type literals for better readability","archived":false,"fork":false,"pushed_at":"2023-10-20T08:45:17.000Z","size":61,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-24T18:41:33.717Z","etag":null,"topics":["aligment-comment","enums","eslint","eslint-plugin","eslintplugin","formatting","interface","objects","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zignis.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}},"created_at":"2023-09-27T14:37:44.000Z","updated_at":"2023-09-28T03:21:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4f9b482-5ba7-477b-b6db-e0dd893646b0","html_url":"https://github.com/zignis/eslint-plugin-alignment","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"ebaa9a51bd0328ae6450acbf5d36f28932468cb6"},"previous_names":["zignis/eslint-plugin-alignment"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zignis/eslint-plugin-alignment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zignis%2Feslint-plugin-alignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zignis%2Feslint-plugin-alignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zignis%2Feslint-plugin-alignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zignis%2Feslint-plugin-alignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zignis","download_url":"https://codeload.github.com/zignis/eslint-plugin-alignment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zignis%2Feslint-plugin-alignment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29238367,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T14:18:14.570Z","status":"ssl_error","status_checked_at":"2026-02-08T14:18:14.071Z","response_time":57,"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":["aligment-comment","enums","eslint","eslint-plugin","eslintplugin","formatting","interface","objects","typescript"],"created_at":"2024-09-24T13:57:07.246Z","updated_at":"2026-02-08T17:33:20.768Z","avatar_url":"https://github.com/zignis.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eslint-plugin-alignment\n\n![GitHub Workflow Status](https://github.com/zignis/eslint-plugin-alignment/actions/workflows/main.yaml/badge.svg)\n![npm](https://img.shields.io/npm/v/eslint-plugin-alignment?style=plastic)\n\n\u003e [!WARNING]  \n\u003e This plugin is still in beta, and some rules might not work as expected.\n\nFormat and align your objects, enums, interfaces, and type literals for better readability.\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003cth\u003e Turn this \u003c/th\u003e\n        \u003cth\u003e Into this \u003c/th\u003e\n    \u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```js\nconst person = {\n  name: \"Connor\",\n  age: 26,\n  jobTitle: \"Musician\",\n  city: \"New York\",\n  country: \"USA\",\n  favoriteColor: \"Blue\",\n  hobbies: [\"Reading\", \"Cooking\", \"Hiking\"],\n  getSomething: () =\u003e \"something\",\n};\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\n```js\nconst person = {\n  name /*         */: \"Connor\",\n  age /*          */: 26,\n  jobTitle /*     */: \"Musician\",\n  city /*         */: \"New York\",\n  country /*      */: \"USA\",\n  favoriteColor /**/: \"Blue\",\n  hobbies /*      */: [\"Reading\", \"Cooking\", \"Hiking\"],\n  getSomething /* */: () =\u003e \"something\",\n};\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```ts\nenum DaysOfWeek {\n  MONDAY = \"Monday\",\n  TUESDAY = \"Tuesday\",\n  WEDNESDAY = \"Wednesday\",\n  THURSDAY = \"Thursday\",\n  FRIDAY = \"Friday\",\n  SATURDAY = \"Saturday\",\n  SUNDAY = \"Sunday\",\n}\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\n```ts\nenum DaysOfWeek {\n  MONDAY /*   */ = \"Monday\",\n  TUESDAY /*  */ = \"Tuesday\",\n  WEDNESDAY /**/ = \"Wednesday\",\n  THURSDAY /* */ = \"Thursday\",\n  FRIDAY /*   */ = \"Friday\",\n  SATURDAY /* */ = \"Saturday\",\n  SUNDAY /*   */ = \"Sunday\",\n}\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\n```ts\ntype ContactInfo = {\n  name: string;\n  email: string;\n  phone?: string;\n  address?: string;\n};\n\ninterface User {\n  id: number;\n  username: string;\n  email: string;\n  age: number;\n}\n```\n\n\u003c/td\u003e\n\u003ctd\u003e\n\n```ts\n// prettier-ignore\ntype ContactInfo = {\n  name /*    */: string;\n  email /*   */: string;\n  phone /*  */?: string;\n  address /**/?: string;\n};\n\n// prettier-ignore\ninterface User {\n  id /*      */: number;\n  username /**/: string;\n  email /*   */: string;\n  age /*     */: number;\n}\n```\n\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## Installation\n\n### Yarn\n\n```bash\nyarn add -D eslint-plugin-alignment\n```\n\n## Usage\n\nAdd `alignment` to your list of plugins and extend the\nrecommended configuration.\n\n```json\n{\n  \"extends\": \"plugin:alignment/recommended\",\n  \"plugins\": [\"alignment\"]\n}\n```\n\n## Rules\n\n| Name                                                     | Description                                          | Fixable (using `--fix`) |\n| -------------------------------------------------------- | ---------------------------------------------------- | ----------------------- |\n| [`alignment/align-objects`](docs/rules/align-objects.md) | Aligns values inside plain JS object expressions     | Yes                     |\n| [`alignment/align-enums`](docs/rules/align-enums.md)     | Aligns members of TS enums                           | Yes                     |\n| [`alignment/align-types`](docs/rules/align-types.md)     | Aligns properties of TS interfaces and type literals | Yes                     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzignis%2Feslint-plugin-alignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzignis%2Feslint-plugin-alignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzignis%2Feslint-plugin-alignment/lists"}