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,13 +1,13 @@
import chalk from 'chalk'
import * as React from 'react'
import { LIGHTNING_BOLT } from '../constants/figures.js'
import { Text, color } from '@anthropic/ink'
import { getGlobalConfig } from '../utils/config.js'
import { resolveThemeSetting } from '../utils/systemTheme.js'
import chalk from 'chalk';
import * as React from 'react';
import { LIGHTNING_BOLT } from '../constants/figures.js';
import { Text, color } from '@anthropic/ink';
import { getGlobalConfig } from '../utils/config.js';
import { resolveThemeSetting } from '../utils/systemTheme.js';
type Props = {
cooldown?: boolean
}
cooldown?: boolean;
};
export function FastIcon({ cooldown }: Props): React.ReactNode {
if (cooldown) {
@@ -15,18 +15,18 @@ export function FastIcon({ cooldown }: Props): React.ReactNode {
<Text color="promptBorder" dimColor>
{LIGHTNING_BOLT}
</Text>
)
);
}
return <Text color="fastMode">{LIGHTNING_BOLT}</Text>
return <Text color="fastMode">{LIGHTNING_BOLT}</Text>;
}
export function getFastIconString(applyColor = true, cooldown = false): string {
if (!applyColor) {
return LIGHTNING_BOLT
return LIGHTNING_BOLT;
}
const themeName = resolveThemeSetting(getGlobalConfig().theme)
const themeName = resolveThemeSetting(getGlobalConfig().theme);
if (cooldown) {
return chalk.dim(color('promptBorder', themeName)(LIGHTNING_BOLT))
return chalk.dim(color('promptBorder', themeName)(LIGHTNING_BOLT));
}
return color('fastMode', themeName)(LIGHTNING_BOLT)
return color('fastMode', themeName)(LIGHTNING_BOLT);
}