A shared Prettier config with Tailwind support and Harry's preferred formatting rules.
npm install --save-dev prettier prettier-plugin-tailwindcss prettier-config-harry
{
"prettier": "prettier-config-harry"
}
- ✅ 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)