eslint: use semicolon TypeScript delimeter

This commit is contained in:
Alex Gleason
2023-10-02 13:54:02 -05:00
parent 702124fb79
commit 645ce60a5f
479 changed files with 1928 additions and 1938 deletions

View File

@ -6,9 +6,9 @@ import { usePreview } from './usePreview';
interface UseImageFieldOpts {
/** Resize the image to the max dimensions, if defined. */
maxPixels?: number
maxPixels?: number;
/** Fallback URL before a file is uploaded. */
preview?: string
preview?: string;
}
/** Returns props for `<input type="file">`, and optionally resizes the file. */

View File

@ -1,6 +1,6 @@
import { useEffect, useMemo, useState } from 'react';
type UseDimensionsRect = { width: number, height: number };
type UseDimensionsRect = { width: number; height: number };
type UseDimensionsResult = [Element | null, any, any]
const defaultState: UseDimensionsRect = {

View File

@ -8,8 +8,8 @@ import type { CSSProperties } from 'react';
const RTL_LOCALES = ['ar', 'ckb', 'fa', 'he'];
interface UseLocaleResult {
locale: string
direction: CSSProperties['direction']
locale: string;
direction: CSSProperties['direction'];
}
/** Get valid locale from settings. */