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,8 +1,5 @@
import { describe, expect, test } from 'bun:test'
import {
type Command,
getCommandName,
} from '../../../commands.js'
import { type Command, getCommandName } from '../../../commands.js'
import type { SuggestionItem } from '../../../components/PromptInput/PromptInputFooterSuggestions.js'
import {
applyCommandSuggestion,
@@ -26,10 +23,7 @@ function makeCommand(name: string, opts?: Partial<Command>): Command {
} as unknown as Command
}
function makePromptCommand(
name: string,
opts?: Partial<Command>,
): Command {
function makePromptCommand(name: string, opts?: Partial<Command>): Command {
return {
name,
description: opts?.description ?? `${name} skill`,
@@ -217,8 +211,12 @@ describe('applyCommandSuggestion', () => {
suggestion,
false,
commands,
v => { newInput = v },
c => { newCursor = c },
v => {
newInput = v
},
c => {
newCursor = c
},
() => {},
)
@@ -241,7 +239,9 @@ describe('applyCommandSuggestion', () => {
commands,
() => {},
() => {},
v => { submitted = v },
v => {
submitted = v
},
)
expect(submitted).toBe('/commit ')