We follow the shadcn/ui formatting style: opinionated, minimal config, integrates with Tailwind and the component patterns in @/components/ui.
Create .prettierrc in the repo root:
{
"semi": false,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "all",
"plugins": [
"prettier-plugin-tailwindcss"
]
}Install dependencies:
pnpm add -D prettier prettier-plugin-tailwindcssIgnore files in .prettierignore:
node_modules
.next
pnpm-lock.yaml
distpnpm prettier --write .@/components/ui and feature content under @/components/...