Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Nov 4, 2024
1 parent fa9613c commit 4b0ff36
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const fileSizeToBytes = (fileSize: FileSize, file: File): number => {
const match = fileSize.match(regex);

if (!match) {
// eslint-disable-next-line @typescript-eslint/only-throw-error
throw createUploadError(UploadErrorCode.InvalidFileSize, {
invalidateFiles: [file],
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/only-throw-error */
import type { AllowedFileType, FileRouterInputKey } from '../internal/mimes';

import { lookup } from '../internal/utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/only-throw-error */
import { type FileSize, type MediaItemConfig, UploadErrorCode } from '../type';
import { createUploadError } from './createUploadError';
import { fileSizeToBytes } from './fileSizeToBytes';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/only-throw-error */
import type { uploadConfig } from '../PlaceholderPlugin';
import type { AllowedFileType } from '../internal/mimes';

Expand Down

0 comments on commit 4b0ff36

Please sign in to comment.