Update eslint to 8.27.0

This commit is contained in:
Fedor Indutny 2022-11-17 16:45:19 -08:00 committed by GitHub
parent c8fb43a846
commit 98ef4c627a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
499 changed files with 8995 additions and 8494 deletions

View file

@ -126,7 +126,7 @@ const timeToText = (time: number): string => {
* for play button and playback rate button
*/
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
(props, ref) => {
function ButtonInner(props, ref) {
const {
i18n,
variant,
@ -197,13 +197,13 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
}
);
const PlayedDot = ({
function PlayedDot({
played,
onHide,
}: {
played: boolean;
onHide: () => void;
}) => {
}) {
const start = played ? 1 : 0;
const end = played ? 0 : 1;
@ -231,7 +231,7 @@ const PlayedDot = ({
)}
/>
);
};
}
/**
* Display message audio attachment along with its waveform, duration, and
@ -246,7 +246,7 @@ const PlayedDot = ({
* `context` is required for displaying separate MessageAudio instances in
* MessageDetails and Message React components.
*/
export const MessageAudio: React.FC<Props> = (props: Props) => {
export function MessageAudio(props: Props): JSX.Element {
const {
active,
buttonRef,
@ -625,4 +625,4 @@ export const MessageAudio: React.FC<Props> = (props: Props) => {
{metadata}
</div>
);
};
}