Skip to content

Commit c259a09

Browse files
committed
fix eslint
1 parent 0797816 commit c259a09

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

assets/js/__tests__/upload.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,15 @@ describe('Image upload form', () => {
238238
await waitFor(() => {
239239
assertSubmitButtonIsDisabled();
240240
const succeededUnloadEvent = new Event('beforeunload', { cancelable: true });
241+
// eslint-disable-next-line vitest/no-conditional-expect
241242
expect(fireEvent(window, succeededUnloadEvent)).toBe(true);
242243
});
243244
} else {
244245
// form submit prevented
245246
const frm = form;
246247
await waitFor(() => {
247248
assertSubmitButtonIsEnabled();
249+
// eslint-disable-next-line vitest/no-conditional-expect
248250
expect(frm.querySelectorAll('.help-block')).toHaveLength(tagErrorCounts[i]);
249251
});
250252
}

assets/js/autocomplete/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { normalizedKeyboardKey, keys } from '../utils/keyboard';
1919
// This lint is dumb, especially in this case because this type alias depends on
2020
// the `Autocomplete` symbol, and methods on the `Autocomplete` class depend on
2121
// this type alias, so either way there is a circular dependency in type annotations
22-
// eslint-disable-next-line no-use-before-define
22+
2323
type ActiveAutocomplete = Autocomplete & { input: AutocompletableInput };
2424

2525
function readHistoryConfig() {

0 commit comments

Comments
 (0)