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,15 +1,15 @@
import figures from 'figures'
import * as React from 'react'
import { Box, Text, StatusIcon } from '@anthropic/ink'
import type { ContextSuggestion } from '../utils/contextSuggestions.js'
import { formatTokens } from '../utils/format.js'
import figures from 'figures';
import * as React from 'react';
import { Box, Text, StatusIcon } from '@anthropic/ink';
import type { ContextSuggestion } from '../utils/contextSuggestions.js';
import { formatTokens } from '../utils/format.js';
type Props = {
suggestions: ContextSuggestion[]
}
suggestions: ContextSuggestion[];
};
export function ContextSuggestions({ suggestions }: Props): React.ReactNode {
if (suggestions.length === 0) return null
if (suggestions.length === 0) return null;
return (
<Box flexDirection="column" marginTop={1}>
@@ -22,8 +22,7 @@ export function ContextSuggestions({ suggestions }: Props): React.ReactNode {
{suggestion.savingsTokens ? (
<Text dimColor>
{' '}
{figures.arrowRight} save ~
{formatTokens(suggestion.savingsTokens)}
{figures.arrowRight} save ~{formatTokens(suggestion.savingsTokens)}
</Text>
) : null}
</Box>
@@ -33,5 +32,5 @@ export function ContextSuggestions({ suggestions }: Props): React.ReactNode {
</Box>
))}
</Box>
)
);
}