prettier-config-harry

1.0.1 • Public • Published

prettier-config-harry

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

🚀 Usage

1. Install the config

npm install --save-dev prettier prettier-plugin-tailwindcss prettier-config-harry

2. In your package.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)

Package Sidebar

Install

npm i prettier-config-harry

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.29 kB

Total Files

3

Last publish

Collaborators

  • ti1t