diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index a44aff8..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "extends": [ - "next/core-web-vitals", - "plugin:import/recommended", - "plugin:import/typescript", - "prettier", - "plugin:tailwindcss/recommended" - ], - "plugins": ["tailwindcss"], - "rules": { - "tailwindcss/no-custom-classname": "off", - "tailwindcss/classnames-order": "off" - }, - "settings": { - "import/resolver": { - "typescript": { - "alwaysTryTypes": true, - "project": "./tsconfig.json" - } - } - }, - "ignorePatterns": ["**/components/ui/**"] -} diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx index e5be52a..2c9759b 100644 --- a/app/(auth)/login/page.tsx +++ b/app/(auth)/login/page.tsx @@ -50,17 +50,17 @@ export default function Page() { }; return ( -
-
+
+
-

Sign In

-

+

Sign In

+

Use your email and password to sign in

Sign in -

+

{"Don't have an account? "} -

+
+
-

Sign Up

-

+

Sign Up

+

Create an account with your email and password

Sign Up -

+

{'Already have an account? '} .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .ͼo.cm-selectionBackground, .ͼo.cm-content::selection { - @apply bg-zinc-200 dark:bg-zinc-900 !important; + @apply bg-zinc-200! dark:bg-zinc-900!; } .cm-activeLine, .cm-activeLineGutter { - @apply bg-transparent !important; + @apply bg-transparent!; } .cm-activeLine { - @apply rounded-r-sm !important; + @apply rounded-r-sm!; } .cm-lineNumbers { - @apply min-w-7; + @apply min-w-7; } .cm-foldGutter { - @apply min-w-3; + @apply min-w-3; } .cm-lineNumbers .cm-activeLineGutter { - @apply rounded-l-sm !important; + @apply rounded-l-sm!; } .suggestion-highlight { - @apply bg-blue-200 hover:bg-blue-300 dark:hover:bg-blue-400/50 dark:text-blue-50 dark:bg-blue-500/40; + @apply bg-blue-200 hover:bg-blue-300 dark:hover:bg-blue-400/50 dark:text-blue-50 dark:bg-blue-500/40; } /* minimal scrollbar styling */ ::-webkit-scrollbar { - width: 6px; - height: 6px; + width: 6px; + height: 6px; } ::-webkit-scrollbar-track { - background: transparent; + background: transparent; } ::-webkit-scrollbar-thumb { - background: hsl(var(--border)); - border-radius: 3px; - transition: background 0.2s ease; + background: var(--border); + border-radius: 3px; + transition: background 0.2s ease; } ::-webkit-scrollbar-thumb:hover { - background: hsl(var(--muted-foreground) / 0.5); + background: --alpha(var(--muted-foreground) / 0.5); } ::-webkit-scrollbar-corner { - background: transparent; + background: transparent; } /* firefox scrollbar styling */ * { - scrollbar-width: thin; - scrollbar-color: hsl(var(--border)) transparent; + scrollbar-width: thin; + scrollbar-color: var(--border) transparent; } diff --git a/artifacts/text/client.tsx b/artifacts/text/client.tsx index f2371ac..813c400 100644 --- a/artifacts/text/client.tsx +++ b/artifacts/text/client.tsx @@ -77,7 +77,7 @@ export const textArtifact = new Artifact<'text', TextArtifactMetadata>({ return ( <> -

+
({ /> {metadata?.suggestions && metadata.suggestions.length > 0 ? ( -
+
) : null}
diff --git a/biome.jsonc b/biome.jsonc index d227936..65729f6 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -62,7 +62,7 @@ "useArrayLiterals": "warn", // Not in recommended ruleset, turning on manually "noNewSymbol": "warn", // Not in recommended ruleset, turning on manually "useJsxKeyInIterable": "off", // Rule is buggy, revisit later - "useExhaustiveDependencies": "off", // Community feedback on this rule has been poor, we will continue with ESLint + "useExhaustiveDependencies": "warn", // Errors by default, switching to warn instead "noUnnecessaryContinue": "off" // Turned off due to developer preferences }, "security": { @@ -80,11 +80,12 @@ "noExplicitAny": "off" // We trust Vercelians to use any only when necessary }, "nursery": { - "noStaticElementInteractions": "warn", - "noHeadImportInDocument": "warn", "noDocumentImportInPage": "warn", "noDuplicateElseIf": "warn", + "noHeadImportInDocument": "warn", "noIrregularWhitespace": "warn", + "noStaticElementInteractions": "warn", + "useSortedClasses": "error", "useValidAutocomplete": "warn" } } diff --git a/components.json b/components.json index 5b6d2bc..388ec17 100644 --- a/components.json +++ b/components.json @@ -4,7 +4,7 @@ "rsc": true, "tsx": true, "tailwind": { - "config": "tailwind.config.ts", + "config": "", "css": "app/globals.css", "baseColor": "zinc", "cssVariables": true, diff --git a/components/app-sidebar.tsx b/components/app-sidebar.tsx index e6d2213..f90029f 100644 --- a/components/app-sidebar.tsx +++ b/components/app-sidebar.tsx @@ -26,15 +26,15 @@ export function AppSidebar({ user }: { user: User | undefined }) { -
+
{ setOpenMobile(false); }} - className="flex flex-row gap-3 items-center" + className="flex flex-row items-center gap-3" > - + Chatbot @@ -43,7 +43,7 @@ export function AppSidebar({ user }: { user: User | undefined }) { - New Chat + + New Chat +
diff --git a/components/artifact-actions.tsx b/components/artifact-actions.tsx index a5689d3..e5f2551 100644 --- a/components/artifact-actions.tsx +++ b/components/artifact-actions.tsx @@ -54,7 +54,7 @@ function PureArtifactActions({ variant="outline" className={cn('h-fit dark:hover:bg-zinc-700', { 'p-2': !action.label, - 'py-1.5 px-2': action.label, + 'px-2 py-1.5': action.label, })} onClick={async () => { setIsLoading(true); diff --git a/components/artifact-messages.tsx b/components/artifact-messages.tsx index 5cb6f93..dbc37f6 100644 --- a/components/artifact-messages.tsx +++ b/components/artifact-messages.tsx @@ -42,7 +42,7 @@ function PureArtifactMessages({ return (
{messages.map((message, index) => ( diff --git a/components/artifact.tsx b/components/artifact.tsx index 9f5d6d7..d6e2904 100644 --- a/components/artifact.tsx +++ b/components/artifact.tsx @@ -259,14 +259,14 @@ function PureArtifact({ {artifact.isVisible && ( {!isMobile && ( {!isCurrentVersion && ( -
+
-
+
-
-
+
+
{artifact.title}
{isContentDirty ? ( -
+
Saving changes...
) : document ? ( -
+
{`Updated ${formatDistance( new Date(document.createdAt), new Date(), @@ -434,7 +434,7 @@ function PureArtifact({ )}`}
) : ( -
+
)}
@@ -450,7 +450,7 @@ function PureArtifact({ />
-
+
@@ -40,7 +40,7 @@ export function AuthForm({
diff --git a/components/chat-header.tsx b/components/chat-header.tsx index e8b4816..5ecae19 100644 --- a/components/chat-header.tsx +++ b/components/chat-header.tsx @@ -29,13 +29,13 @@ function PureChatHeader({ const { width: windowWidth } = useWindowSize(); return ( -
+
{(!open || windowWidth < 768) && ( ); } diff --git a/components/elements/actions.tsx b/components/elements/actions.tsx index 2cd0306..d2d8eb8 100644 --- a/components/elements/actions.tsx +++ b/components/elements/actions.tsx @@ -13,7 +13,7 @@ import type { ComponentProps } from 'react'; export type ActionsProps = ComponentProps<'div'>; export const Actions = ({ className, children, ...props }: ActionsProps) => ( -
+
{children}
); @@ -35,7 +35,7 @@ export const Action = ({ const button = (