Skip to content

Commit 9310a1d

Browse files
committed
Resolves #369
1 parent 652dd61 commit 9310a1d

9 files changed

Lines changed: 1 addition & 18 deletions

File tree

packages/elements/src/code-block.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,11 @@ import type {
3030
import { createHighlighter } from "shiki";
3131

3232
// Shiki uses bitflags for font styles: 1=italic, 2=bold, 4=underline
33-
// biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
34-
// eslint-disable-next-line no-bitwise -- shiki bitflag check
33+
// oxlint-disable-next-line eslint(no-bitwise)
3534
const isItalic = (fontStyle: number | undefined) => fontStyle && fontStyle & 1;
36-
// biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
37-
// eslint-disable-next-line no-bitwise -- shiki bitflag check
3835
// oxlint-disable-next-line eslint(no-bitwise)
3936
const isBold = (fontStyle: number | undefined) => fontStyle && fontStyle & 2;
4037
const isUnderline = (fontStyle: number | undefined) =>
41-
// biome-ignore lint/suspicious/noBitwiseOperators: shiki bitflag check
4238
// oxlint-disable-next-line eslint(no-bitwise)
4339
fontStyle && fontStyle & 4;
4440

packages/elements/src/commit.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ export const CommitActions = ({
194194
children,
195195
...props
196196
}: CommitActionsProps) => (
197-
// biome-ignore lint/a11y/noNoninteractiveElementInteractions: stopPropagation required for nested interactions
198-
// biome-ignore lint/a11y/useSemanticElements: fieldset doesn't fit this UI pattern
199197
<div
200198
className={cn("flex items-center gap-1", className)}
201199
onClick={handleActionsClick}

packages/elements/src/file-tree.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,6 @@ export const FileTreeActions = ({
292292
children,
293293
...props
294294
}: FileTreeActionsProps) => (
295-
// biome-ignore lint/a11y/noNoninteractiveElementInteractions: stopPropagation required for nested interactions
296-
// biome-ignore lint/a11y/useSemanticElements: fieldset doesn't fit this UI pattern
297295
<div
298296
className={cn("ml-auto flex items-center gap-1", className)}
299297
onClick={stopPropagation}

packages/elements/src/image.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/** biome-ignore-all lint/correctness/useImageSize: "size will be handled by props" */
2-
31
import { cn } from "@repo/shadcn-ui/lib/utils";
42
import type { Experimental_GeneratedImage } from "ai";
53

packages/elements/src/jsx-preview.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ export const JSXPreviewContent = memo(
211211
const [hadError, setHadError] = useState(false);
212212

213213
// Reset error tracking when jsx changes
214-
// biome-ignore lint/correctness/useExhaustiveDependencies: processedJsx change should reset tracking
215214
useEffect(() => {
216215
errorReportedRef.current = null;
217216
setHadError(false);
@@ -238,7 +237,6 @@ export const JSXPreviewContent = memo(
238237
);
239238

240239
// Track the last JSX that rendered without error
241-
// biome-ignore lint/correctness/useExhaustiveDependencies: update when processedJsx changes without error
242240
useEffect(() => {
243241
if (!errorReportedRef.current) {
244242
lastGoodJsxRef.current = processedJsx;

packages/elements/src/prompt-input.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,6 @@ export const PromptInput = ({
797797
}
798798
}
799799
},
800-
// eslint-disable-next-line react-hooks/exhaustive-deps -- cleanup only on unmount; filesRef always current
801800
[usingProvider]
802801
);
803802

packages/elements/src/schema-display.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ export const SchemaDisplayPath = ({
106106
return (
107107
<span
108108
className={cn("font-mono text-sm", className)}
109-
// biome-ignore lint/security/noDangerouslySetInnerHtml: "needed for parameter highlighting"
110109
// oxlint-disable-next-line eslint-plugin-react(no-danger)
111110
dangerouslySetInnerHTML={{ __html: children ?? highlightedPath }}
112111
{...props}

packages/elements/src/stack-trace.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,6 @@ const handleActionsKeyDown = (e: React.KeyboardEvent) => {
290290

291291
export const StackTraceActions = memo(
292292
({ className, children, ...props }: StackTraceActionsProps) => (
293-
// biome-ignore lint/a11y/noNoninteractiveElementInteractions: stopPropagation required for nested interactions
294-
// biome-ignore lint/a11y/useSemanticElements: fieldset doesn't fit this UI pattern
295293
<div
296294
className={cn("flex shrink-0 items-center gap-1", className)}
297295
onClick={handleActionsClick}

packages/elements/src/terminal.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ export const TerminalContent = ({
195195
const { output, isStreaming, autoScroll } = useContext(TerminalContext);
196196
const containerRef = useRef<HTMLDivElement>(null);
197197

198-
// biome-ignore lint/correctness/useExhaustiveDependencies: output triggers auto-scroll when new content arrives
199198
useEffect(() => {
200199
if (autoScroll && containerRef.current) {
201200
containerRef.current.scrollTop = containerRef.current.scrollHeight;

0 commit comments

Comments
 (0)