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

@@ -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 }) => {

View File

@@ -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 }) => {

View File

@@ -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 }) => {

View File

@@ -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 }) => {

View File

@@ -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 }) => (

View File

@@ -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. */