mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
chore: Fix all lint errors and remove unused code
- Fix 75 ESLint errors by updating eslint.config.mjs: - Add missing browser globals (MouseEvent, AbortController, Response, etc.) - Add Vite define global (__APP_VERSION__) - Configure @ts-nocheck to require descriptions - Add no-unused-vars rule for .mjs scripts - Fix runtime bug in agent-output-modal.tsx (setOutput -> setStreamedContent) - Remove ~120 unused variable warnings across 97 files: - Remove unused imports (React hooks, lucide icons, types) - Remove unused constants and variables - Remove unused function definitions - Prefix intentionally unused parameters with underscore - Add descriptions to all @ts-nocheck comments (25 files) - Clean up misc issues: - Remove invalid deprecation plugin comments - Fix eslint-disable comment placement - Add missing RefreshCw import in code-view.tsx Reduces lint warnings from ~300 to 67 (all remaining are no-explicit-any) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -62,19 +62,6 @@ test.describe('Feature Manual Review Flow', () => {
|
||||
const featureDir = path.join(automakerDir, 'features', featureId);
|
||||
fs.mkdirSync(featureDir, { recursive: true });
|
||||
|
||||
const feature = {
|
||||
id: featureId,
|
||||
description: 'Test feature for manual review flow',
|
||||
category: 'test',
|
||||
status: 'waiting_approval',
|
||||
skipTests: true,
|
||||
model: 'sonnet',
|
||||
thinkingLevel: 'none',
|
||||
createdAt: new Date().toISOString(),
|
||||
branchName: '',
|
||||
priority: 2,
|
||||
};
|
||||
|
||||
// Note: Feature is created via HTTP API in the test itself, not in beforeAll
|
||||
// This ensures the feature exists when the board view loads it
|
||||
});
|
||||
|
||||
@@ -6,14 +6,12 @@
|
||||
|
||||
import { test, expect } from '@playwright/test';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import {
|
||||
createTempDirPath,
|
||||
cleanupTempDir,
|
||||
setupWelcomeView,
|
||||
authenticateForTests,
|
||||
handleLoginScreenIfPresent,
|
||||
waitForNetworkIdle,
|
||||
} from '../utils';
|
||||
|
||||
const TEST_TEMP_DIR = createTempDirPath('project-creation-test');
|
||||
|
||||
@@ -17,7 +17,6 @@ import {
|
||||
setupWelcomeView,
|
||||
authenticateForTests,
|
||||
handleLoginScreenIfPresent,
|
||||
waitForNetworkIdle,
|
||||
} from '../utils';
|
||||
|
||||
// Create unique temp dir for this test run
|
||||
|
||||
@@ -620,7 +620,7 @@ export async function setupMockMultipleProjects(
|
||||
projectCount: number = 3
|
||||
): Promise<void> {
|
||||
await page.addInitScript((count: number) => {
|
||||
const mockProjects = [];
|
||||
const mockProjects: TestProject[] = [];
|
||||
for (let i = 0; i < count; i++) {
|
||||
mockProjects.push({
|
||||
id: `test-project-${i + 1}`,
|
||||
|
||||
Reference in New Issue
Block a user