eslint: use semicolon TypeScript delimeter
This commit is contained in:
@@ -7,10 +7,10 @@ import { isMobile } from 'soapbox/is-mobile';
|
||||
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
||||
|
||||
interface IColorPicker {
|
||||
style?: React.CSSProperties
|
||||
value: string
|
||||
onChange: ColorChangeHandler
|
||||
onClose: () => void
|
||||
style?: React.CSSProperties;
|
||||
value: string;
|
||||
onChange: ColorChangeHandler;
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
const ColorPicker: React.FC<IColorPicker> = ({ style, value, onClose, onChange }) => {
|
||||
|
||||
@@ -9,9 +9,9 @@ import ColorPicker from './color-picker';
|
||||
import type { ColorChangeHandler } from 'react-color';
|
||||
|
||||
interface IColorWithPicker {
|
||||
value: string
|
||||
onChange: ColorChangeHandler
|
||||
className?: string
|
||||
value: string;
|
||||
onChange: ColorChangeHandler;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const ColorWithPicker: React.FC<IColorWithPicker> = ({ value, onChange, className }) => {
|
||||
|
||||
@@ -12,8 +12,8 @@ const messages = defineMessages({
|
||||
});
|
||||
|
||||
interface IIconPickerDropdown {
|
||||
value: string
|
||||
onPickIcon: (icon: string) => void
|
||||
value: string;
|
||||
onPickIcon: (icon: string) => void;
|
||||
}
|
||||
|
||||
const IconPickerDropdown: React.FC<IIconPickerDropdown> = ({ value, onPickIcon }) => {
|
||||
|
||||
@@ -12,10 +12,10 @@ const messages = defineMessages({
|
||||
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
||||
|
||||
interface IIconPickerMenu {
|
||||
icons: Record<string, Array<string>>
|
||||
onClose: () => void
|
||||
onPick: (icon: string) => void
|
||||
style?: React.CSSProperties
|
||||
icons: Record<string, Array<string>>;
|
||||
onClose: () => void;
|
||||
onPick: (icon: string) => void;
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
const IconPickerMenu: React.FC<IIconPickerMenu> = ({ icons, onClose, onPick, style }) => {
|
||||
|
||||
@@ -3,8 +3,8 @@ import React from 'react';
|
||||
import IconPickerDropdown from './icon-picker-dropdown';
|
||||
|
||||
interface IIconPicker {
|
||||
value: string
|
||||
onChange: (icon: string) => void
|
||||
value: string;
|
||||
onChange: (icon: string) => void;
|
||||
}
|
||||
|
||||
const IconPicker: React.FC<IIconPicker> = ({ value, onChange }) => (
|
||||
|
||||
@@ -11,7 +11,7 @@ import { generateThemeCss } from 'soapbox/utils/theme';
|
||||
|
||||
interface ISitePreview {
|
||||
/** Raw Soapbox configuration. */
|
||||
soapbox: any
|
||||
soapbox: any;
|
||||
}
|
||||
|
||||
/** Renders a preview of the website's style with the configuration applied. */
|
||||
|
||||
Reference in New Issue
Block a user