fix: lint errors

This commit is contained in:
Mingholy 2025-09-16 20:01:16 +08:00
parent f599cda7d2
commit d3476a2d47
5 changed files with 10 additions and 12 deletions

View file

@ -30,7 +30,7 @@ describe('FolderTrustDialog', () => {
expect(lastFrame()).toContain('Do you trust this folder?'); expect(lastFrame()).toContain('Do you trust this folder?');
expect(lastFrame()).toContain( expect(lastFrame()).toContain(
'Trusting a folder allows Gemini to execute commands it suggests.', 'Trusting a folder allows Qwen Code to execute commands it suggests.',
); );
}); });

View file

@ -429,7 +429,7 @@ describe('SettingsDialog', () => {
<KeypressProvider kittyProtocolEnabled={false}> <KeypressProvider kittyProtocolEnabled={false}>
<SettingsDialog <SettingsDialog
settings={settings} settings={settings}
onSelect={() => { }} onSelect={() => {}}
onRestartRequest={onRestartRequest} onRestartRequest={onRestartRequest}
/> />
</KeypressProvider>, </KeypressProvider>,
@ -450,7 +450,7 @@ describe('SettingsDialog', () => {
<KeypressProvider kittyProtocolEnabled={false}> <KeypressProvider kittyProtocolEnabled={false}>
<SettingsDialog <SettingsDialog
settings={settings} settings={settings}
onSelect={() => { }} onSelect={() => {}}
onRestartRequest={onRestartRequest} onRestartRequest={onRestartRequest}
/> />
</KeypressProvider>, </KeypressProvider>,
@ -973,7 +973,7 @@ describe('SettingsDialog', () => {
<KeypressProvider kittyProtocolEnabled={false}> <KeypressProvider kittyProtocolEnabled={false}>
<SettingsDialog <SettingsDialog
settings={settings} settings={settings}
onSelect={() => { }} onSelect={() => {}}
onRestartRequest={onRestartRequest} onRestartRequest={onRestartRequest}
/> />
</KeypressProvider>, </KeypressProvider>,

View file

@ -544,16 +544,16 @@ export function SettingsDialog({
? defaultValue ? defaultValue
: false : false
: typeof defaultValue === 'number' || : typeof defaultValue === 'number' ||
typeof defaultValue === 'string' typeof defaultValue === 'string'
? defaultValue ? defaultValue
: undefined; : undefined;
const immediateSettingsObject = const immediateSettingsObject =
toSaveValue !== undefined toSaveValue !== undefined
? setPendingSettingValueAny( ? setPendingSettingValueAny(
currentSetting.value, currentSetting.value,
toSaveValue, toSaveValue,
{} as Settings, {} as Settings,
) )
: ({} as Settings); : ({} as Settings);
saveModifiedSettings( saveModifiedSettings(

View file

@ -495,8 +495,6 @@ export function KeypressProvider({
stdin, stdin,
setRawMode, setRawMode,
kittyProtocolEnabled, kittyProtocolEnabled,
config,
subscribers,
debugKeystrokeLogging, debugKeystrokeLogging,
pasteWorkaround, pasteWorkaround,
config, config,

View file

@ -176,7 +176,7 @@ describe('GitService', () => {
await service.setupShadowGitRepository(); await service.setupShadowGitRepository();
const expectedConfigContent = const expectedConfigContent =
'[user]\n name = Qwen Code\n email = gemini-cli@google.com\n[commit]\n gpgsign = false\n'; '[user]\n name = Qwen Code\n email = qwen-code@qwen.ai\n[commit]\n gpgsign = false\n';
const actualConfigContent = await fs.readFile(gitConfigPath, 'utf-8'); const actualConfigContent = await fs.readFile(gitConfigPath, 'utf-8');
expect(actualConfigContent).toBe(expectedConfigContent); expect(actualConfigContent).toBe(expectedConfigContent);
}); });