{"library":"prettier-plugin-sort-members","title":"prettier-plugin-sort-members","description":"Prettier plugin to sort class, interface, and type alias members (properties, methods, getters/setters) in a configurable order. Current stable version 0.2.4, compatible with Prettier ^3.0.0. Released regularly with bug fixes and features. Differentiators: supports default `@typescript-eslint/member-ordering` order, optional alphabetical sorting, `keepGettersAndSettersTogether`, and experimental `skipSortForSubclassOf` for React component compatibility. Lightweight, no runtime dependencies beyond Prettier.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-sort-members"],"cli":null},"imports":["// In prettierrc: { \"plugins\": [\"prettier-plugin-sort-members\"] }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// 1. Install\nnpm install --save-dev prettier-plugin-sort-members\n\n// 2. In .prettierrc:\n{\n  \"plugins\": [\"prettier-plugin-sort-members\"],\n  \"sortMembersAlphabetically\": true,\n  \"keepGettersAndSettersTogether\": true\n}\n\n// 3. Example input:\nclass MyClass {\n  d(): void {}\n  e: null;\n  c: string;\n  a(): void {}\n  b: number;\n  constructor() {}\n}\n\n// 4. Run prettier (format will sort members alphabetically, but keep getters/setters together):\n// After formatting, members will be ordered by: static, instance, constructor, methods, with alphabetical sub-ordering","lang":"typescript","description":"Install plugin, configure options in Prettier config, and format TypeScript classes to sort members.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}