mirror of
https://fastgit.cc/github.com/Yeachan-Heo/oh-my-claudecode
synced 2026-04-20 21:00:50 +08:00
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:
@@ -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'],
|
||||
}
|
||||
);
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user