{"id":26662659,"url":"https://github.com/cyberaroom/prettierrc","last_synced_at":"2025-04-11T18:23:08.376Z","repository":{"id":278486906,"uuid":"935776541","full_name":"cyberaroom/prettierrc","owner":"cyberaroom","description":"quick. easy. readable.","archived":false,"fork":false,"pushed_at":"2025-02-23T03:10:39.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-11T18:23:02.529Z","etag":null,"topics":["code-formatter","code-style","devtools","fullstack","prettier","prettier-config","shareable-configs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cyberaroom-prettierrc?activeTab=readme","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyberaroom.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-02-20T02:09:33.000Z","updated_at":"2025-02-23T03:27:29.000Z","dependencies_parsed_at":"2025-02-20T03:38:23.591Z","dependency_job_id":null,"html_url":"https://github.com/cyberaroom/prettierrc","commit_stats":null,"previous_names":["cyberaroom/prettierrc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberaroom%2Fprettierrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberaroom%2Fprettierrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberaroom%2Fprettierrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyberaroom%2Fprettierrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyberaroom","download_url":"https://codeload.github.com/cyberaroom/prettierrc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248456383,"owners_count":21106607,"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":["code-formatter","code-style","devtools","fullstack","prettier","prettier-config","shareable-configs"],"created_at":"2025-03-25T14:17:36.792Z","updated_at":"2025-04-11T18:23:08.341Z","avatar_url":"https://github.com/cyberaroom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cyberaroom-prettierrc\n\nAdvanced Prettier configuration with multi-filetype support and plugin ecosystem integration.\n\n## ✨ Features\n\n- 🎨 **Tailwind CSS** class sorting and formatting\n- 📦 **Automatic import organization** for JS/TS\n- 🏷 **HTML/JSX attribute ordering** with custom groups\n- 📝 **JSDoc documentation formatting**\n- 🗄 **Prisma schema** auto-formatting\n- 🌐 **Nginx config** syntax support\n- 📄 **Multi-parser support** for 10+ file types\n- 🔧 **Consistent code style** across entire project\n\n## 📦 Installation\n\n```bash\nnpm install --save-dev cyberaroom-prettierrc prettier\n```\n\nInstall plugins:\n\n```bash\nnpm install --save-dev\n  prettier-plugin-tailwindcss\n  prettier-plugin-organize-imports\n  prettier-plugin-organize-attributes\n  prettier-plugin-jsdoc\n  prettier-plugin-prisma\n  prettier-plugin-nginx\n```\n\n## ⚙️ Configuration\n\n1. **Basic setup** (package.json):\n\n```json\n{\n\t\"prettier\": \"cyberaroom-prettierrc\"\n}\n```\n\n2. **Advanced setup** (.prettierrc.js):\n\n```javascript\nmodule.exports = {\n\textends: \"cyberaroom-prettierrc\",\n\t// Optional plugin-specific configs\n\ttailwindConfig: \"./tailwind.config.js\",\n\tprisma: {\n\t\tschema: \"./prisma/schema.prisma\",\n\t},\n}\n```\n\n## 📋 Supported File Types\n\n| File Patterns               | Parser     | Plugins                         |\n| --------------------------- | ---------- | ------------------------------- |\n| `*.ts`, `*.tsx`             | TypeScript | Import sorting, JSDoc, Tailwind |\n| `*.js`, `*.jsx`, `*.mjs`    | Babel      | Import sorting, JSDoc           |\n| `*.json`                    | JSON       | -                               |\n| `nginx*.conf`               | Nginx      | Nginx syntax support            |\n| `*.html`                    | HTML       | Attribute sorting               |\n| `*.prisma`                  | Prisma     | Schema formatting               |\n| `*.css`, `*.scss`, `*.sass` | CSS/SCSS   | Tailwind class sorting          |\n\n## 🛠 Plugin Configuration\n\n### Tailwind CSS\n\nAdd Tailwind config path in your project's Prettier config:\n\n```javascript\n// .prettierrc.js\nmodule.exports = {\n\ttailwindConfig: \"./tailwind.config.js\",\n}\n```\n\n### HTML/JSX Attribute Ordering\n\nAttributes are sorted in this order:\n\n1. `class`\n2. `id`, `name`\n3. Default group\n4. `aria-*` attributes\n\nEnable case-insensitive sorting:\n\n```javascript\n// .prettierrc.js\nmodule.exports = {\n\tattributeIgnoreCase: false, // default: true\n}\n```\n\n## 🚀 Usage\n\nFormat all supported files:\n\n```bash\nnpx prettier --write .\n```\n\nCheck formatting:\n\n```bash\nnpx prettier --check .\n```\n\nFormat specific file types:\n\n```bash\nnpx prettier --write '**/*.tsx'\n```\n\n## ⚠️ Troubleshooting\n\n**Common issues:**\n\n1. **Plugins not working**:\n\n   - Ensure all plugins are in `devDependencies`\n   - Clear Prettier cache: `npx prettier --clear-cache`\n\n2. **Tailwind class sorting**:\n\n   - Verify `tailwind.config.js` exists\n   - Restart IDE after configuration changes\n\n3. **Nginx config support**:\n   - Install `prettier-plugin-nginx` separately if using npm \u003c7\n\n## 🔄 Version Policy\n\n- Compatible with Prettier 3.x\n- Tested with Node.js 18+\n- Semantic versioning (breaking changes in major versions)\n\n## 📄 License\n\nMIT © [cyberaroom](https://github.com/cyberaroom)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberaroom%2Fprettierrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyberaroom%2Fprettierrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyberaroom%2Fprettierrc/lists"}