UNPKG

prettier-config-harry

Version:

A shared Prettier config with Tailwind support and Harry's preferred formatting rules.

32 lines (23 loc) 720 B
# prettier-config-harry A shared Prettier config with Tailwind support and Harry's preferred formatting rules. ## 🚀 Usage ### 1. Install the config ```bash npm install --save-dev prettier prettier-plugin-tailwindcss prettier-config-harry ``` ### 2. In your `package.json`: ```json { "prettier": "prettier-config-harry" } ``` ## 💡 Features - ✅ Use tabs for indentation - ✅ Print semicolons at the end of statements - ✅ Use single quotes (including in JSX) - ✅ Print spaces between object brackets - ✅ Include parentheses around arrow function params - ✅ Respect HTML whitespace like CSS - ✅ Trailing commas where valid in ES5 - ✅ Tab width: 2 - ✅ Tailwind CSS class sorting (via plugin)