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

@ -118,7 +118,7 @@ export default {
title: 'Components/Conversation/TimelineItem',
};
export const PlainMessage = (): JSX.Element => {
export function PlainMessage(): JSX.Element {
const item = {
type: 'message',
data: {
@ -134,9 +134,9 @@ export const PlainMessage = (): JSX.Element => {
} as TimelineItemProps['item'];
return <TimelineItem {...getDefaultProps()} item={item} i18n={i18n} />;
};
}
export const Notification = (): JSX.Element => {
export function Notification(): JSX.Element {
const items = [
{
type: 'timerNotification',
@ -502,9 +502,9 @@ export const Notification = (): JSX.Element => {
))}
</>
);
};
}
export const UnknownType = (): JSX.Element => {
export function UnknownType(): JSX.Element {
const item = {
type: 'random',
data: {
@ -514,11 +514,11 @@ export const UnknownType = (): JSX.Element => {
} as any as TimelineItemProps['item'];
return <TimelineItem {...getDefaultProps()} item={item} i18n={i18n} />;
};
}
export const MissingItem = (): JSX.Element => {
export function MissingItem(): JSX.Element {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const item = null as any as TimelineItemProps['item'];
return <TimelineItem {...getDefaultProps()} item={item} i18n={i18n} />;
};
}