diff --git a/scripts/popup-main.js b/scripts/popup-main.js index 9535197..ac8671c 100644 --- a/scripts/popup-main.js +++ b/scripts/popup-main.js @@ -435,7 +435,7 @@ class PopupInterfaceManager { return text.replace(/\n/g, '
').replace(/\*\*(.*?)\*\*/g, '$1'); } - updatePageInfo(title, status) { + updatePageInfo(title, _status) { const titleEl = document.getElementById('current-page-title'); if (titleEl) titleEl.textContent = title; } @@ -481,7 +481,7 @@ class PopupInterfaceManager { const text = el.innerText; navigator.clipboard.writeText(text).then(() => { this.showSuccessToast('Copied to clipboard'); - }).catch(err => { + }).catch(_err => { this.showErrorToast('Failed to copy'); }); } @@ -504,7 +504,7 @@ class PopupInterfaceManager { } refreshAnalysisCards() {} updateLanguageDetection() {} - calculateReadabilityScore(text) { return { score: 80, level: 'Easy' }; } + calculateReadabilityScore(_text) { return { score: 80, level: 'Easy' }; } displayAnalysisResult(type, data) { const el = document.getElementById(`${type}-result`); diff --git a/src/services/ai-service.js b/src/services/ai-service.js index 28e7a27..a387ffd 100644 --- a/src/services/ai-service.js +++ b/src/services/ai-service.js @@ -254,7 +254,7 @@ export class AIService { * @param {Object} requestParams - Request parameters * @returns {Promise} Provider response */ - async makeProviderRequest(requestParams) { + async makeProviderRequest(_requestParams) { // This would interface with the actual AI provider APIs // For now, return a mock response return { diff --git a/tests/e2e/extension-loading.spec.js b/tests/e2e/extension-loading.spec.js index 5fdcf9b..44a9406 100644 --- a/tests/e2e/extension-loading.spec.js +++ b/tests/e2e/extension-loading.spec.js @@ -32,7 +32,7 @@ test.describe('Extension Loading', () => { expect(extensionErrors).toHaveLength(0); }); - test('should create context menu items', async ({ page, context }) => { + test('should create context menu items', async ({ page, context: _context }) => { await page.goto('https://example.com'); // Select some text to trigger context menu diff --git a/tests/integration/extension-workflow.test.js b/tests/integration/extension-workflow.test.js index 95e7ae4..e5d2b75 100644 --- a/tests/integration/extension-workflow.test.js +++ b/tests/integration/extension-workflow.test.js @@ -38,7 +38,7 @@ describe('Extension Integration Workflow', () => { const messageHandler = chrome.runtime.onMessage.addListener.mock.calls[0][0]; // Execute handler - Note: the handler is async but returns true immediately - const result = messageHandler(message, sender, sendResponse); + messageHandler(message, sender, sendResponse); // Verify response is eventually sent await vi.waitFor(() => {