fe6e96dd3f
Shadboard starter-kit (Next.js 15 + React 19 + shadcn/ui + Tailwind 4) Sprint 4.a — Admin Dashboard: - Auth: NextAuth.js v5, login page, middleware, token rotation - Dashboard: KPI cards, Recharts stock chart, quick actions - Members: TanStack Table (search/sort/paginate), add/edit forms - Distributions: multi-step form, real-time quota check, history - Stock: batch management, recall dialog, bar chart - Reports: monthly/member-list/recall, PDF/CSV download, preview Sprint 4.b — Member Portal: - Separate route group with top-nav layout (mobile-first) - Quota dashboard with radial SVG progress indicators - Distribution history with month filter - Profile/settings with password change Cross-cutting: - i18n: German (default) + English via next-intl - Dark + light mode (next-themes, user-togglable) - Playwright E2E tests (6/6 green) - Docker multi-stage build (node:22-alpine) - API proxy via Next.js rewrites Tech: Next.js 15.2.8, React 19, Tailwind 4, NextAuth v5, TanStack Table, Recharts, Zod, React Hook Form, Playwright
56 lines
1.3 KiB
JavaScript
56 lines
1.3 KiB
JavaScript
/** @type {import('prettier').Config} */
|
|
const config = {
|
|
plugins: [
|
|
"prettier-plugin-tailwindcss",
|
|
"@ianvs/prettier-plugin-sort-imports",
|
|
],
|
|
semi: false,
|
|
singleQuote: false,
|
|
trailingComma: "es5",
|
|
printWidth: 80,
|
|
tabWidth: 2,
|
|
bracketSpacing: true,
|
|
arrowParens: "always",
|
|
endOfLine: "lf",
|
|
tailwindStylesheet: "./src/app/globals.css",
|
|
tailwindConfig: "./tailwind.config.ts",
|
|
tailwindFunctions: ["cn", "clsx"],
|
|
importOrder: [
|
|
"<BUILTIN_MODULES>",
|
|
"",
|
|
"^(react/(.*)$)|^(react$)",
|
|
"^(react-dom/(.*)$)|^(react-dom$)",
|
|
"^(next/(.*)$)|^(next$)",
|
|
"<THIRD_PARTY_MODULES>",
|
|
"^(lucide-react/(.*)$)|^(lucide-react$)",
|
|
"^(react-icons/(.*)$)|^(react-icons$)",
|
|
"",
|
|
".css$",
|
|
"",
|
|
"<TYPES>^(node:)",
|
|
"<TYPES>",
|
|
"<TYPES>^[.]",
|
|
"/types(.*)$",
|
|
"",
|
|
"/(_data|data)/(.*)$",
|
|
"",
|
|
"/(_schemas|schemas)/(.*)$",
|
|
"",
|
|
"/constants/(.*)$",
|
|
"/configs/(.*)$",
|
|
"/lib/(.*)$",
|
|
"",
|
|
"/(_hooks|hooks)/(.*)$",
|
|
"/(_contexts|contexts)/(.*)$",
|
|
"/(_providers|providers)/(.*)$",
|
|
"^@/components/ui/(.*)$",
|
|
"/(_components|components)/(.*)$",
|
|
"[.]",
|
|
],
|
|
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
|
|
importOrderTypeScriptVersion: "5.0.0",
|
|
importOrderCaseSensitive: true,
|
|
}
|
|
|
|
export default config
|