{"id":15118215,"url":"https://github.com/mskelton/eslint-plugin-sort","last_synced_at":"2025-04-09T09:05:32.004Z","repository":{"id":38172375,"uuid":"258372952","full_name":"mskelton/eslint-plugin-sort","owner":"mskelton","description":"Auto-fixable sort rules for ESLint.","archived":false,"fork":false,"pushed_at":"2024-10-29T10:31:11.000Z","size":64607,"stargazers_count":26,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T03:37:55.965Z","etag":null,"topics":["eslint","eslint-plugin","eslint-plugin-sort","fix","sort","sorting-imports"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/eslint-plugin-sort","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/mskelton.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"mskelton"}},"created_at":"2020-04-24T01:24:30.000Z","updated_at":"2024-12-12T17:05:51.000Z","dependencies_parsed_at":"2024-02-17T03:28:30.402Z","dependency_job_id":"f4aaf01f-eeb5-4936-8c3a-2df6c00d3105","html_url":"https://github.com/mskelton/eslint-plugin-sort","commit_stats":{"total_commits":134,"total_committers":7,"mean_commits":"19.142857142857142","dds":"0.23134328358208955","last_synced_commit":"9ec9233d08e6b25756b5eb84cbab57820d56f104"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Feslint-plugin-sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Feslint-plugin-sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Feslint-plugin-sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskelton%2Feslint-plugin-sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mskelton","download_url":"https://codeload.github.com/mskelton/eslint-plugin-sort/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"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","eslint-plugin-sort","fix","sort","sorting-imports"],"created_at":"2024-09-26T01:46:10.581Z","updated_at":"2025-04-09T09:05:31.981Z","avatar_url":"https://github.com/mskelton.png","language":"TypeScript","funding_links":["https://github.com/sponsors/mskelton"],"categories":["TypeScript"],"sub_categories":[],"readme":"# eslint-plugin-sort\n\n[![Build status](https://github.com/mskelton/eslint-plugin-sort/workflows/Build/badge.svg)](https://github.com/mskelton/eslint-plugin-sort/actions)\n[![npm](https://img.shields.io/npm/v/eslint-plugin-sort)](https://www.npmjs.com/package/eslint-plugin-sort)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nAuto-fixable sort rules for ESLint.\n\n## Installation\n\n### npm\n\n```bash\nnpm install -D eslint-plugin-sort\n```\n\n### Yarn\n\n```bash\nyarn add -D eslint-plugin-sort\n```\n\n### pnpm\n\n```bash\npnpm add -D eslint-plugin-sort\n```\n\n### bun\n\n```bash\nbun add -d eslint-plugin-sort\n```\n\n## Usage\n\nAfter installing, add `sort` to your list of ESLint plugins and extend the\nrecommended configuration. This will enable all available rules as warnings.\n\n[Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new)\n(**eslint.config.js**)\n\n```javascript\nimport sort from \"eslint-plugin-sort\"\n\nexport default [\n  sort.configs[\"flat/recommended\"],\n  {\n    rules: {\n      // Customize rules...\n    },\n  },\n]\n```\n\n[Legacy config](https://eslint.org/docs/latest/use/configure/configuration-files)\n(**.eslintrc**)\n\n```json\n{\n  \"extends\": \"plugin:sort/recommended\",\n  \"plugins\": [\"sort\"]\n}\n```\n\n## List of Supported Rules\n\n✔: Enabled in the `recommended` configuration.\\\n🔧: Fixable with [`eslint --fix`](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems).\n\n|  ✔  | 🔧  | Rule                                                                    | Description                           |\n| :-: | :-: | ----------------------------------------------------------------------- | ------------------------------------- |\n|  ✔  | 🔧  | [sort/destructuring-properties](docs/rules/destructuring-properties.md) | Sorts object destructuring properties |\n|  ✔  | 🔧  | [sort/exports](docs/rules/exports.md)                                   | Sorts exports                         |\n|  ✔  | 🔧  | [sort/export-members](docs/rules/export-members.md)                     | Sorts export members                  |\n|  ✔  | 🔧  | [sort/imports](docs/rules/imports.md)                                   | Sorts imports                         |\n|  ✔  | 🔧  | [sort/import-members](docs/rules/import-members.md)                     | Sorts import members                  |\n|  ✔  | 🔧  | [sort/object-properties](docs/rules/object-properties.md)               | Sorts object properties               |\n|     | 🔧  | [sort/type-properties](docs/rules/type-properties.md)                   | Sorts TypeScript type properties      |\n|     | 🔧  | [sort/string-enums](docs/rules/string-enums.md)                         | Sorts TypeScript string enums         |\n|     | 🔧  | [sort/string-unions](docs/rules/string-unions.md)                       | Sorts TypeScript string unions        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskelton%2Feslint-plugin-sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmskelton%2Feslint-plugin-sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskelton%2Feslint-plugin-sort/lists"}