Skip to content
This repository was archived by the owner on May 28, 2026. It is now read-only.

Commit 77bcb81

Browse files
eslint: enforce no-unused-vars (#174)
1 parent 9ca48c3 commit 77bcb81

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"rules": {
1515
"no-jquery/no-global-selector": "warn",
16-
"no-unused-vars": "warn",
1716
"no-new": "warn",
1817
"semi-style": "warn",
1918
"yml/no-empty-document": "warn",

assets/app.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ $( () => {
154154
}
155155

156156
const $submitBtns = $( '.submit-full, .submit-crop' );
157-
$submitBtns.closest( 'form' ).on( 'submit', ( e ) => {
157+
$submitBtns.closest( 'form' ).on( 'submit', () => {
158158
$submitBtns.attr( 'disabled', true );
159159
$( '.loader' ).removeClass( 'hidden' );
160160
} );
161161
// Re-enable submit buttons on pagehide, so that they are re-enabled if returned to via browser history
162-
$( window ).on( 'pagehide', ( e ) => {
162+
$( window ).on( 'pagehide', () => {
163163
$submitBtns.attr( 'disabled', false );
164164
$( '.loader' ).addClass( 'hidden' );
165165
} );
@@ -212,12 +212,12 @@ $( () => {
212212
} );
213213

214214
// When setting a new image URL, remove the preview and the crop dimensions.
215-
$( '[name=image]' ).on( 'change', ( e ) => {
215+
$( '[name=image]' ).on( 'change', () => {
216216
$ocrOutputDiv.remove();
217217
} );
218218

219219
// When submitting the main 'transcribe' button, do not send crop dimensions.
220-
$( '.submit-full' ).on( 'click', ( e ) => {
220+
$( '.submit-full' ).on( 'click', () => {
221221
x.value = null;
222222
y.value = null;
223223
width.value = null;

0 commit comments

Comments
 (0)