From adf5e96542ebd65c7d13ca5e9825071183b3ef13 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Wed, 1 Apr 2026 17:06:49 +0900 Subject: fix: lint fixes for integration tests and backtester noqa annotations --- .claude/commands/create-page.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .claude/commands/create-page.md (limited to '.claude/commands/create-page.md') diff --git a/.claude/commands/create-page.md b/.claude/commands/create-page.md new file mode 100644 index 0000000..4572b9f --- /dev/null +++ b/.claude/commands/create-page.md @@ -0,0 +1,23 @@ +--- +description: Create a new Next.js 15 App Router page with proper structure +argument-hint: "[route-path] [page-type]" +allowed-tools: Write, Read, Bash +--- + +Create a new Next.js 15 App Router page: $ARGUMENTS + +Follow Next.js 15 best practices: +1. Create app/[route-path]/page.tsx with async params/searchParams +2. Add loading.tsx with proper Suspense fallback +3. Add error.tsx as Client Component with error boundary +4. Include proper TypeScript types for route parameters +5. Use Server Components by default +6. Add proper metadata for SEO + +Page types available: +- **default** - Standard page with basic layout +- **dynamic** - Dynamic route with [id] parameter +- **protected** - Page with authentication check +- **api** - API route handler + +Example: `/create-page dashboard/analytics dynamic` -- cgit v1.2.3