style: 完成所有文件的lint

This commit is contained in:
claude-code-best
2026-05-01 21:39:30 +08:00
parent d136872cc9
commit 6182015005
1333 changed files with 68255 additions and 77882 deletions

View File

@@ -1,23 +1,19 @@
import React from 'react'
import { BLACK_CIRCLE } from '../constants/figures.js'
import React from 'react';
import { BLACK_CIRCLE } from '../constants/figures.js';
import { Box, Text } from '@anthropic/ink'
import { useBlink } from '../hooks/useBlink.js'
import { Box, Text } from '@anthropic/ink';
import { useBlink } from '../hooks/useBlink.js';
type Props = {
isError: boolean
isUnresolved: boolean
shouldAnimate: boolean
}
isError: boolean;
isUnresolved: boolean;
shouldAnimate: boolean;
};
export function ToolUseLoader({
isError,
isUnresolved,
shouldAnimate,
}: Props): React.ReactNode {
const [ref, isBlinking] = useBlink(shouldAnimate)
export function ToolUseLoader({ isError, isUnresolved, shouldAnimate }: Props): React.ReactNode {
const [ref, isBlinking] = useBlink(shouldAnimate);
const color = isUnresolved ? undefined : isError ? 'error' : 'success'
const color = isUnresolved ? undefined : isError ? 'error' : 'success';
// WARNING: The code here and in AssistantToolUseMessage is particularly
// sensitive to what *should* just be trivial refactorings. A `<dim>x</dim>`
@@ -30,10 +26,8 @@ export function ToolUseLoader({
return (
<Box ref={ref} minWidth={2}>
<Text color={color} dimColor={isUnresolved}>
{!shouldAnimate || isBlinking || isError || !isUnresolved
? BLACK_CIRCLE
: ' '}
{!shouldAnimate || isBlinking || isError || !isUnresolved ? BLACK_CIRCLE : ' '}
</Text>
</Box>
)
);
}