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

View File

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

View File

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

View File

@@ -176,7 +176,7 @@ describe('GitService', () => {
await service.setupShadowGitRepository();
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');
expect(actualConfigContent).toBe(expectedConfigContent);
});