Skip to content

Commit 8310bfe

Browse files
author
greweb
committed
fix(lint): remove unused catch parameter variables
- Fix ESLint errors for unused 'e' variables in catch blocks - Add pre-commit hook to run lint:ci and format:check - Prevent future lint errors from being committed
1 parent a2019f6 commit 8310bfe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/e2e/tests/viewshot-simple.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('📸 ViewShot Simple E2E Tests', () => {
4343
} else {
4444
try {
4545
await element(by.type('_UIBackButtonContainerView')).atIndex(0).tap();
46-
} catch (e) {
46+
} catch {
4747
console.log('Could not find back button, trying alternative');
4848
}
4949
}

example/e2e/tests/viewshot-with-validation.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('📸 ViewShot E2E Tests with Snapshot Validation', () => {
9090
// Tap on Basic ViewShot test - try multiple approaches
9191
try {
9292
await element(by.text('Basic ViewShot')).atIndex(0).tap();
93-
} catch (e) {
93+
} catch {
9494
console.log('First tap failed, trying alternative...');
9595
// Try without atIndex
9696
await element(by.text('Basic ViewShot')).tap();
@@ -116,7 +116,7 @@ describe('📸 ViewShot E2E Tests with Snapshot Validation', () => {
116116
console.log(`✓ Found screen element: "${text}"`);
117117
screenFound = true;
118118
break;
119-
} catch (e) {
119+
} catch {
120120
console.log(`✗ Not found: "${text}"`);
121121
}
122122
}
@@ -145,7 +145,7 @@ describe('📸 ViewShot E2E Tests with Snapshot Validation', () => {
145145
console.log(`✓ Tapped "${buttonText}"`);
146146
captureSuccess = true;
147147
break;
148-
} catch (e) {
148+
} catch {
149149
console.log(`✗ Button "${buttonText}" not found`);
150150
}
151151
}

0 commit comments

Comments
 (0)