eslint: use semicolon TypeScript delimeter
This commit is contained in:
@ -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. */
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user