diff --git a/biome.json b/biome.json index 3b5fafa..3876841 100644 --- a/biome.json +++ b/biome.json @@ -6,7 +6,10 @@ "linter": { "enabled": true, "rules": { - "recommended": true + "recommended": true, + "nursery": { + "useSortedClasses": "warn" + } } }, "javascript": { diff --git a/bun.lockb b/bun.lockb index c506578..6ac8e3e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a22da4e..05c61e7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "build": "next build", "dev": "next dev", - "lint": "next lint", + "lint": "biome lint --write --unsafe ./src", "start": "next start", "format": "prettier --write ." }, @@ -29,19 +29,12 @@ }, "devDependencies": { "@biomejs/biome": "1.8.3", - "@it-incubator/eslint-config": "^0.1.0", "@it-incubator/prettier-config": "^0.1.0", "@types/node": "^18.15.11", "@types/react": "^18.0.33", "@types/react-dom": "^18.0.11", - "@typescript-eslint/eslint-plugin": "^5.57.1", - "@typescript-eslint/parser": "^5.57.1", "autoprefixer": "^10.4.14", - "eslint": "^8.37.0", - "eslint-config-next": "13.2.4", "postcss": "^8.4.21", - "prettier": "^2.8.7", - "prettier-plugin-tailwindcss": "^0.2.6", "tailwindcss": "^3.3.1", "typescript": "^5.0.3" }, diff --git a/src/components/mode-toggle.tsx b/src/components/mode-toggle.tsx index 198ccb9..7e613c4 100644 --- a/src/components/mode-toggle.tsx +++ b/src/components/mode-toggle.tsx @@ -19,7 +19,7 @@ export function ModeToggle() { diff --git a/src/components/todolist/index.tsx b/src/components/todolist/index.tsx index b90d1cf..ec4d0fd 100644 --- a/src/components/todolist/index.tsx +++ b/src/components/todolist/index.tsx @@ -2,15 +2,15 @@ import { type ChangeEvent, type FC, type FormEvent, + memo, useCallback, useMemo, + useState, } from "react" -import { memo, useState } from "react" import { Card, CardContent, - CardDescription, CardFooter, CardHeader, CardTitle, @@ -24,7 +24,6 @@ import { Button } from "../ui/button" import { Input } from "../ui/input" import { Checkbox } from "@/components/ui/checkbox" -import { Skeleton } from "@/components/ui/skeleton" import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group" import { TaskStatus, @@ -123,7 +122,7 @@ export const Todolist: FC = memo(({ todolist }) => { }, [filteredTasks, todolist.id, handleChangeStatus, handleDeleteTask]) return ( - +
{todolist.title} diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx index afa13ec..0a9e625 100644 --- a/src/components/ui/card.tsx +++ b/src/components/ui/card.tsx @@ -36,7 +36,7 @@ const CardTitle = React.forwardRef<

(({ className, ...props }, ref) => (

)) diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx index 769ff7a..5ac50f0 100644 --- a/src/components/ui/dropdown-menu.tsx +++ b/src/components/ui/dropdown-menu.tsx @@ -45,7 +45,7 @@ const DropdownMenuSubContent = React.forwardRef< ( id={idToUse} type={type} className={cn( - "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", + "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className, )} ref={ref} diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index d1dd042..33a2aee 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -34,7 +34,7 @@ function Header() { logout() } return ( -

+

Tasks

diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index ddb4eb0..985d849 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -2,9 +2,9 @@ import { Head, Html, Main, NextScript } from "next/document" export default function Document() { return ( - + - +
diff --git a/src/pages/sign-up.tsx b/src/pages/sign-up.tsx index 6cfee57..5cb1071 100644 --- a/src/pages/sign-up.tsx +++ b/src/pages/sign-up.tsx @@ -13,6 +13,7 @@ const Login: NextPage = () => { e.preventDefault() const formData = new FormData(e.currentTarget) + // biome-ignore lint/suspicious/noExplicitAny: const values = Object.fromEntries(formData) as any signUp(values) } @@ -23,7 +24,7 @@ const Login: NextPage = () => { className={"flex w-96 flex-col gap-3 rounded-md border p-6"} onSubmit={handleSubmit} > -

Sign up

+

Sign up