Skip to content

Commit dc44dab

Browse files
authored
Biome config tweaks and fixes applied (#741)
1 parent 5e8c620 commit dc44dab

File tree

101 files changed

+243
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+243
-251
lines changed

.changeset/early-baboons-doubt.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

biome.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.3/schema.json",
33
"files": {
44
"includes": [
55
"**/*.js",
@@ -21,18 +21,20 @@
2121
"!**/.env",
2222
"!target",
2323
"!**/tests/fixture",
24-
"!**/tests/errors"
24+
"!**/tests/errors",
25+
"!**/.workflow-data",
26+
"!**/.nuxt",
27+
"!**/.nitro",
28+
"!**/.output"
2529
],
2630
"ignoreUnknown": true
2731
},
2832
"formatter": {
2933
"enabled": true,
3034
"formatWithErrors": false,
31-
"indentStyle": "space",
32-
"indentWidth": 2,
33-
"lineEnding": "lf",
3435
"lineWidth": 80,
35-
"attributePosition": "auto"
36+
"attributePosition": "auto",
37+
"useEditorconfig": true
3638
},
3739
"linter": {
3840
"enabled": true,
@@ -74,6 +76,7 @@
7476
}
7577
},
7678
"assist": {
79+
"enabled": true,
7780
"actions": {
7881
"source": {
7982
"organizeImports": "on"

docs/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import './global.css';
2+
import type { Metadata } from 'next';
23
import { Navbar } from '@/components/geistdocs/navbar';
34
import { GeistdocsProvider } from '@/components/geistdocs/provider';
45
import { mono, sans } from '@/lib/geistdocs/fonts';
56
import { cn } from '@/lib/utils';
6-
import { Metadata } from 'next';
77

88
const Logo = () => (
99
<span className="flex items-center gap-1.5 font-semibold text-foreground tracking-tight text-xl">

docs/app/sitemap.md/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { source } from '@/lib/geistdocs/source';
21
import type { Node, Root } from 'fumadocs-core/page-tree';
2+
import { source } from '@/lib/geistdocs/source';
33

44
export const revalidate = false;
55
export const dynamic = 'force-static';

docs/components/ai-elements/code-block.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use client';
22

3-
import { Button } from '@/components/ui/button';
4-
import { cn } from '@/lib/utils';
53
import { CheckIcon, CopyIcon } from 'lucide-react';
64
import {
75
type ComponentProps,
@@ -13,6 +11,8 @@ import {
1311
useState,
1412
} from 'react';
1513
import { type BundledLanguage, codeToHtml, type ShikiTransformer } from 'shiki';
14+
import { Button } from '@/components/ui/button';
15+
import { cn } from '@/lib/utils';
1616

1717
type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
1818
code: string;

docs/components/ai-elements/conversation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use client';
22

3-
import { Button } from '@/components/ui/button';
4-
import { cn } from '@/lib/utils';
53
import { ArrowDownIcon } from 'lucide-react';
64
import type { ComponentProps } from 'react';
75
import { useCallback } from 'react';
86
import { StickToBottom, useStickToBottomContext } from 'use-stick-to-bottom';
7+
import { Button } from '@/components/ui/button';
8+
import { cn } from '@/lib/utils';
99

1010
export type ConversationProps = ComponentProps<typeof StickToBottom>;
1111

docs/components/ai-elements/message.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
'use client';
22

3-
import { Button } from '@/components/ui/button';
4-
import { ButtonGroup, ButtonGroupText } from '@/components/ui/button-group';
5-
import {
6-
Tooltip,
7-
TooltipContent,
8-
TooltipProvider,
9-
TooltipTrigger,
10-
} from '@/components/ui/tooltip';
11-
import { cn } from '@/lib/utils';
123
import type { FileUIPart, UIMessage } from 'ai';
134
import {
145
ChevronLeftIcon,
@@ -19,6 +10,15 @@ import {
1910
import type { ComponentProps, HTMLAttributes, ReactElement } from 'react';
2011
import { createContext, memo, useContext, useEffect, useState } from 'react';
2112
import { Streamdown } from 'streamdown';
13+
import { Button } from '@/components/ui/button';
14+
import { ButtonGroup, ButtonGroupText } from '@/components/ui/button-group';
15+
import {
16+
Tooltip,
17+
TooltipContent,
18+
TooltipProvider,
19+
TooltipTrigger,
20+
} from '@/components/ui/tooltip';
21+
import { cn } from '@/lib/utils';
2222

2323
export type MessageProps = HTMLAttributes<HTMLDivElement> & {
2424
from: UIMessage['role'];

docs/components/ai-elements/open-in-chat.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
'use client';
22

3+
import {
4+
ChevronDownIcon,
5+
ExternalLinkIcon,
6+
MessageCircleIcon,
7+
} from 'lucide-react';
8+
import { type ComponentProps, createContext, useContext } from 'react';
39
import { Button } from '@/components/ui/button';
410
import {
511
DropdownMenu,
@@ -10,12 +16,6 @@ import {
1016
DropdownMenuTrigger,
1117
} from '@/components/ui/dropdown-menu';
1218
import { cn } from '@/lib/utils';
13-
import {
14-
ChevronDownIcon,
15-
ExternalLinkIcon,
16-
MessageCircleIcon,
17-
} from 'lucide-react';
18-
import { type ComponentProps, createContext, useContext } from 'react';
1919

2020
const providers = {
2121
github: {

docs/components/ai-elements/prompt-input.tsx

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
'use client';
22

3+
import type { ChatStatus, FileUIPart } from 'ai';
4+
import {
5+
CornerDownLeftIcon,
6+
ImageIcon,
7+
Loader2Icon,
8+
MicIcon,
9+
PaperclipIcon,
10+
PlusIcon,
11+
SquareIcon,
12+
XIcon,
13+
} from 'lucide-react';
14+
import { nanoid } from 'nanoid';
15+
import {
16+
type ChangeEvent,
17+
type ChangeEventHandler,
18+
Children,
19+
type ClipboardEventHandler,
20+
type ComponentProps,
21+
createContext,
22+
type FormEvent,
23+
type FormEventHandler,
24+
Fragment,
25+
type HTMLAttributes,
26+
type KeyboardEventHandler,
27+
type PropsWithChildren,
28+
type ReactNode,
29+
type RefObject,
30+
useCallback,
31+
useContext,
32+
useEffect,
33+
useMemo,
34+
useRef,
35+
useState,
36+
} from 'react';
337
import { Button } from '@/components/ui/button';
438
import {
539
Command,
@@ -35,40 +69,6 @@ import {
3569
SelectValue,
3670
} from '@/components/ui/select';
3771
import { cn } from '@/lib/utils';
38-
import type { ChatStatus, FileUIPart } from 'ai';
39-
import {
40-
CornerDownLeftIcon,
41-
ImageIcon,
42-
Loader2Icon,
43-
MicIcon,
44-
PaperclipIcon,
45-
PlusIcon,
46-
SquareIcon,
47-
XIcon,
48-
} from 'lucide-react';
49-
import { nanoid } from 'nanoid';
50-
import {
51-
type ChangeEvent,
52-
type ChangeEventHandler,
53-
Children,
54-
type ClipboardEventHandler,
55-
type ComponentProps,
56-
createContext,
57-
type FormEvent,
58-
type FormEventHandler,
59-
Fragment,
60-
type HTMLAttributes,
61-
type KeyboardEventHandler,
62-
type PropsWithChildren,
63-
type ReactNode,
64-
type RefObject,
65-
useCallback,
66-
useContext,
67-
useEffect,
68-
useMemo,
69-
useRef,
70-
useState,
71-
} from 'react';
7272
// ============================================================================
7373
// Provider Context & Types
7474
// ============================================================================

docs/components/ai-elements/shimmer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use client';
22

3-
import { cn } from '@/lib/utils';
43
import { motion } from 'motion/react';
54
import {
65
type CSSProperties,
@@ -9,6 +8,7 @@ import {
98
memo,
109
useMemo,
1110
} from 'react';
11+
import { cn } from '@/lib/utils';
1212

1313
export type TextShimmerProps = {
1414
children: string;

0 commit comments

Comments
 (0)