fix(lint): fix pre-existing lint errors on dev branch

- Fix empty block statement in daemon.ts (catch block)
- Add benchmark-scoring.test.ts to eslint ignore list (excluded from tsconfig)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Yeachan-Heo
2026-03-03 23:02:23 +00:00
parent 730789cfed
commit 6544ad9ab4
3 changed files with 3 additions and 3 deletions

View File

@@ -38,6 +38,6 @@ export default tseslint.config(
},
},
{
ignores: ['dist/**', 'node_modules/**', '*.js', '*.mjs'],
ignores: ['dist/**', 'node_modules/**', '*.js', '*.mjs', 'src/__tests__/benchmark-scoring.test.ts'],
}
);

View File

@@ -511,7 +511,7 @@ export function startDaemon(config?: DaemonConfig): DaemonResponse {
return { success: false, message: 'Failed to start daemon process' };
} catch (error) {
// Clean up config file on failure
try { unlinkSync(configPath); } catch {}
try { unlinkSync(configPath); } catch { /* ignore cleanup errors */ }
return {
success: false,
message: 'Failed to start daemon',

View File

@@ -95,7 +95,7 @@ describe('buildTaskPrompt structure', () => {
config: { workingDirectory: string }
): string {
const sanitizedSubject = sanitizePromptContent(task.subject, 500);
const sanitizedDescription = sanitizePromptContent(task.description, 10000);
let sanitizedDescription = sanitizePromptContent(task.description, 10000);
let inboxContext = '';
if (messages.length > 0) {