{"id":13809266,"url":"https://github.com/infctr/eslint-plugin-typescript-sort-keys","last_synced_at":"2025-04-07T02:07:06.662Z","repository":{"id":37979478,"uuid":"166794005","full_name":"infctr/eslint-plugin-typescript-sort-keys","owner":"infctr","description":"A linter plugin to require sorting interface and string enum keys","archived":false,"fork":false,"pushed_at":"2024-10-05T15:34:04.000Z","size":721,"stargazers_count":152,"open_issues_count":16,"forks_count":29,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T01:04:02.686Z","etag":null,"topics":["eslint","eslint-plugin","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infctr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-01-21T10:21:42.000Z","updated_at":"2025-03-23T19:23:19.000Z","dependencies_parsed_at":"2024-01-08T07:59:44.323Z","dependency_job_id":"a02c50c8-1ff1-402d-a2bc-393a3438116c","html_url":"https://github.com/infctr/eslint-plugin-typescript-sort-keys","commit_stats":{"total_commits":153,"total_committers":12,"mean_commits":12.75,"dds":0.2941176470588235,"last_synced_commit":"e99e668f058394ddf28348797ae70892012e9957"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Feslint-plugin-typescript-sort-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Feslint-plugin-typescript-sort-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Feslint-plugin-typescript-sort-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infctr%2Feslint-plugin-typescript-sort-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infctr","download_url":"https://codeload.github.com/infctr/eslint-plugin-typescript-sort-keys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247578554,"owners_count":20961271,"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":["eslint","eslint-plugin","typescript"],"created_at":"2024-08-04T01:02:13.713Z","updated_at":"2025-04-07T02:07:06.644Z","avatar_url":"https://github.com/infctr.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"![Tests](https://github.com/infctr/eslint-plugin-typescript-sort-keys/workflows/Tests/badge.svg?branch=master)\n\n# eslint-plugin-typescript-sort-keys\n\nSort interface and string enum keys\n\nInspired by and sourced from [eslint/sort-keys]([https://github.com/eslint/eslint/blob/master/docs/rules/sort-keys.md](https://github.com/eslint/eslint/blob/main/docs/src/rules/sort-keys.md))\n\n## Installation\n\nYou'll first need to install\n\n- [eslint](http://eslint.org)\n- [typescript](http://www.typescriptlang.org/)\n- [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser)\n\n```sh\nyarn add -D eslint typescript @typescript-eslint/parser\n```\n\nNext, install `eslint-plugin-typescript-sort-keys`:\n\n```sh\nyarn add -D eslint-plugin-typescript-sort-keys\n```\n\n**Note:** If you installed ESLint globally then you must also install `eslint-plugin-typescript-sort-keys` globally.\n\n## Usage\n\nSpecify the parser for typescript files in your `.eslintrc` configuration file:\n\n```json\n{\n  \"parser\": \"@typescript-eslint/parser\"\n}\n```\n\nAdd `typescript-sort-keys` to the plugins section. You can omit the `eslint-plugin-` prefix:\n\n```json\n{\n  \"plugins\": [\"typescript-sort-keys\"]\n}\n```\n\nThen configure the rules you want to use under the rules section.\n\n```json\n{\n  \"rules\": {\n    \"typescript-sort-keys/interface\": \"error\",\n    \"typescript-sort-keys/string-enum\": \"error\"\n  }\n}\n```\n\nOr enable all rules with defaults\n\n```json\n{\n  \"extends\": [\"plugin:typescript-sort-keys/recommended\"]\n}\n```\n\n## Supported Rules\n\n\u003c!-- begin rule list --\u003e\n\n**Key**: :heavy_check_mark: = recommended, :wrench: = fixable\n\n\u003c!-- prettier-ignore --\u003e\n| Name | Description | :heavy_check_mark: | :wrench: |\n| ---- | ----------- | ------------------ | -------- |\n| [`typescript-sort-keys/interface`](./docs/rules/interface.md) | require interface keys to be sorted | :heavy_check_mark: | :wrench: |\n| [`typescript-sort-keys/string-enum`](./docs/rules/string-enum.md) | require string enum members to be sorted | :heavy_check_mark: | :wrench: |\n\n\u003c!-- end rule list --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfctr%2Feslint-plugin-typescript-sort-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfctr%2Feslint-plugin-typescript-sort-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfctr%2Feslint-plugin-typescript-sort-keys/lists"}