This is my personal prettier config.
- No semicolons
- Single quotes
- 2 spaces
- 80 characters per line
- Trailing commas
- Svelte format
- Tailwind classes sorting
- CSS property sorting
- Import sorting
- Package.json sorting
- JSDoc formatting
pnpm i @ubermanu/prettier-config prettier -D
You can also install the following plugins (automatically detected):
pnpm i prettier-plugin-svelte -D
pnpm i prettier-plugin-tailwindcss -D
In your package.json
:
{
"prettier": "@ubermanu/prettier-config"
}