mirror of
https://github.com/xCyanGrizzly/DragonsStash.git
synced 2026-05-10 22:01:16 +00:00
fix eslint errors
This commit is contained in:
@@ -39,7 +39,11 @@
|
|||||||
"Bash(python3:*)",
|
"Bash(python3:*)",
|
||||||
"Bash(for page in filaments resins paints dashboard)",
|
"Bash(for page in filaments resins paints dashboard)",
|
||||||
"Bash(do echo -n \"$page: \")",
|
"Bash(do echo -n \"$page: \")",
|
||||||
"Bash(done)"
|
"Bash(done)",
|
||||||
|
"Bash(gh run:*)",
|
||||||
|
"Bash(npx next lint:*)",
|
||||||
|
"Bash(npx eslint .)",
|
||||||
|
"Bash(echo:*)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ const eslintConfig = defineConfig([
|
|||||||
"out/**",
|
"out/**",
|
||||||
"build/**",
|
"build/**",
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
|
// Non-app scripts and seed — not part of Next.js build
|
||||||
|
"scripts/**",
|
||||||
|
"prisma/seed.ts",
|
||||||
]),
|
]),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ async function main() {
|
|||||||
|
|
||||||
// Create regular user
|
// Create regular user
|
||||||
const userPassword = await hash("password123", 10);
|
const userPassword = await hash("password123", 10);
|
||||||
const user = await prisma.user.upsert({
|
const _user = await prisma.user.upsert({
|
||||||
where: { email: "user@dragonsstash.local" },
|
where: { email: "user@dragonsstash.local" },
|
||||||
update: {},
|
update: {},
|
||||||
create: {
|
create: {
|
||||||
|
|||||||
@@ -161,9 +161,7 @@ function parseMarkdownTable(markdown: string, brandFile: string): PaintEntry[] {
|
|||||||
const nameIdx = 0;
|
const nameIdx = 0;
|
||||||
const codeIdx = hasCode ? 1 : -1;
|
const codeIdx = hasCode ? 1 : -1;
|
||||||
const setIdx = hasCode ? 2 : 1;
|
const setIdx = hasCode ? 2 : 1;
|
||||||
const rIdx = hasCode ? 3 : 2;
|
// RGB column indices (3-5 or 2-4) skipped — we use hex directly
|
||||||
const gIdx = hasCode ? 4 : 3;
|
|
||||||
const bIdx = hasCode ? 5 : 4;
|
|
||||||
const hexIdx = hasCode ? 6 : 5;
|
const hexIdx = hasCode ? 6 : 5;
|
||||||
|
|
||||||
const entries: PaintEntry[] = [];
|
const entries: PaintEntry[] = [];
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export function VendorTable({ data, pageCount, totalCount }: VendorTableProps) {
|
|||||||
const [deleteId, setDeleteId] = useState<string | null>(null);
|
const [deleteId, setDeleteId] = useState<string | null>(null);
|
||||||
|
|
||||||
const [searchValue, setSearchValue] = useState(searchParams.get("search") ?? "");
|
const [searchValue, setSearchValue] = useState(searchParams.get("search") ?? "");
|
||||||
const debouncedSearch = useDebounce(searchValue, 300);
|
const _debouncedSearch = useDebounce(searchValue, 300);
|
||||||
|
|
||||||
// Update URL when search changes
|
// Update URL when search changes
|
||||||
const updateSearch = (value: string) => {
|
const updateSearch = (value: string) => {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default function LoginPage() {
|
|||||||
const [isPending, startTransition] = useTransition();
|
const [isPending, startTransition] = useTransition();
|
||||||
|
|
||||||
const form = useForm<LoginInput>({
|
const form = useForm<LoginInput>({
|
||||||
resolver: zodResolver(loginSchema) as any,
|
resolver: zodResolver(loginSchema),
|
||||||
defaultValues: { email: "", password: "" },
|
defaultValues: { email: "", password: "" },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default function RegisterPage() {
|
|||||||
const [isPending, startTransition] = useTransition();
|
const [isPending, startTransition] = useTransition();
|
||||||
|
|
||||||
const form = useForm<RegisterInput>({
|
const form = useForm<RegisterInput>({
|
||||||
resolver: zodResolver(registerSchema) as any,
|
resolver: zodResolver(registerSchema),
|
||||||
defaultValues: { name: "", email: "", password: "", confirmPassword: "" },
|
defaultValues: { name: "", email: "", password: "", confirmPassword: "" },
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { signOut, useSession } from "next-auth/react";
|
import { signOut, useSession } from "next-auth/react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { LogOut, Settings, User } from "lucide-react";
|
import { LogOut, Settings } from "lucide-react";
|
||||||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
||||||
import {
|
import {
|
||||||
DropdownMenu,
|
DropdownMenu,
|
||||||
|
|||||||
Reference in New Issue
Block a user