{"id":31641942,"url":"https://github.com/emanuelefavero/prettier","last_synced_at":"2025-10-07T03:26:46.607Z","repository":{"id":295124223,"uuid":"891720254","full_name":"emanuelefavero/prettier","owner":"emanuelefavero","description":"My custom Prettier configuration file","archived":false,"fork":false,"pushed_at":"2025-08-21T00:30:04.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T02:35:16.998Z","etag":null,"topics":["formatter","prettier","prettier-config","prettierrc","tailwindcss-plugin"],"latest_commit_sha":null,"homepage":"","language":null,"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/emanuelefavero.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,"zenodo":null}},"created_at":"2024-11-20T20:48:02.000Z","updated_at":"2025-08-21T00:30:07.000Z","dependencies_parsed_at":"2025-05-23T19:20:16.132Z","dependency_job_id":"84deed79-bd42-4510-90fd-51d05956c09f","html_url":"https://github.com/emanuelefavero/prettier","commit_stats":null,"previous_names":["emanuelefavero/prettier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emanuelefavero/prettier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fprettier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fprettier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fprettier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fprettier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanuelefavero","download_url":"https://codeload.github.com/emanuelefavero/prettier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fprettier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278714802,"owners_count":26033152,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["formatter","prettier","prettier-config","prettierrc","tailwindcss-plugin"],"created_at":"2025-10-07T03:26:42.493Z","updated_at":"2025-10-07T03:26:46.595Z","avatar_url":"https://github.com/emanuelefavero.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prettier Configuration File\n\nThis repository contains my custom Prettier configuration file. The purpose of this repository is to make it easy to clone and apply the same Prettier settings across different projects.\n\n## Usage\n\n- To use this configuration file, simply copy the `.prettierrc` file to the root of your project directory. You can do this manually or by running the following command:\n\n```bash\ncurl -o .prettierrc https://raw.githubusercontent.com/emanuelefavero/prettier/main/.prettierrc\n```\n\n- Install Prettier and Prettier plugins in the root of your project directory:\n\n```bash\nnpm i -D prettier prettier-plugin-organize-imports prettier-plugin-tailwindcss\n```\n\n- Adjust `./src/app/globals.css` to your CSS file where you import TailwindCSS: `@import 'tailwindcss'`;\n\n\u003e Note: You can use the `Prettier - Code formatter` extension in Visual Studio Code to format your code using Prettier\n\u003e\n\u003e Note; If you don't want to use the plugins, you can remove them from the `.prettierrc` file `”plugins”, “organizeImportsSkipDestructiveCodeActions”, “tailwindConfig”`\n\n## .prettierrc\n\n```json\n{\n  \"semi\": false,\n  \"singleQuote\": true,\n  \"jsxSingleQuote\": true,\n\n  \"tabWidth\": 2,\n  \"bracketSpacing\": true,\n  \"printWidth\": 80,\n  \"useTabs\": false,\n  \"arrowParens\": \"always\",\n  \"htmlWhitespaceSensitivity\": \"css\",\n  \"trailingComma\": \"all\",\n\n  \"plugins\": [\n    \"prettier-plugin-organize-imports\",\n    \"prettier-plugin-tailwindcss\"\n  ],\n  \"organizeImportsSkipDestructiveCodeActions\": true,\n  \"tailwindStylesheet\": \"./src/app/globals.css\"\n}\n```\n\nAs you can see the settings are divided in 3 (*separated by spaces since json doesn’t allow comments*):\n\n- Prettier settings that have values different from prettier defaults\n- Default settings that I like to have available for quick changes\n- Plugins and plugin related settings\n\n## Plugins\n\n- [prettier-plugin-organize-imports](https://www.npmjs.com/package/prettier-plugin-organize-imports) - This is a plugin that allows you to auto organise the code imports on save. Add \"organizeImportsSkipDestructiveCodeActions\": true, if you want to prevent the plugin from removing unused imports\n- [prettier-plugin-tailwindcss](https://www.npmjs.com/package/prettier-plugin-tailwindcss/v/0.0.0-insiders.d539a72) - This plugin automatically sorts the tailwind classes in your code. It needs to have this prettier setting: \"tailwindConfig\": \"./tailwind.config.ts\"\n\n\u003e Note: Adjust the `tailwindStylesheet` setting to your CSS file where you import TailwindCSS: `@import 'tailwindcss'`;\n\n## License\n\n### MIT License\n\nCopyright (c) 2024 Emanuele Favero\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Author\n\n- [Emanuele Favero](https://emanuelefavero.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Fprettier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanuelefavero%2Fprettier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Fprettier/lists"}