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

@ -35,134 +35,152 @@ function getDefaultProps(): PropsType {
};
}
export const GoodStory = (): JSX.Element => (
<StoryImage {...getDefaultProps()} />
);
export function GoodStory(): JSX.Element {
return <StoryImage {...getDefaultProps()} />;
}
GoodStory.story = {
name: 'Good story',
};
export const GoodStoryThumbnail = (): JSX.Element => (
<StoryImage {...getDefaultProps()} isThumbnail />
);
export function GoodStoryThumbnail(): JSX.Element {
return <StoryImage {...getDefaultProps()} isThumbnail />;
}
GoodStoryThumbnail.story = {
name: 'Good story (thumbnail)',
};
export const NotDownloaded = (): JSX.Element => (
<StoryImage {...getDefaultProps()} attachment={fakeAttachment()} />
);
export function NotDownloaded(): JSX.Element {
return <StoryImage {...getDefaultProps()} attachment={fakeAttachment()} />;
}
NotDownloaded.story = {
name: 'Not downloaded',
};
export const NotDownloadedThumbnail = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment()}
isThumbnail
/>
);
export function NotDownloadedThumbnail(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment()}
isThumbnail
/>
);
}
NotDownloadedThumbnail.story = {
name: 'Not downloaded (thumbnail)',
};
export const PendingDownload = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
pending: true,
})}
/>
);
export function PendingDownload(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
pending: true,
})}
/>
);
}
PendingDownload.story = {
name: 'Pending download',
};
export const PendingDownloadThumbnail = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
pending: true,
})}
isThumbnail
/>
);
export function PendingDownloadThumbnail(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
pending: true,
})}
isThumbnail
/>
);
}
PendingDownloadThumbnail.story = {
name: 'Pending download (thumbnail)',
};
export const BrokenImage = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
url: '/this/path/does/not/exist.jpg',
})}
/>
);
export function BrokenImage(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
url: '/this/path/does/not/exist.jpg',
})}
/>
);
}
export const BrokenImageThumbnail = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
url: '/this/path/does/not/exist.jpg',
})}
isThumbnail
/>
);
export function BrokenImageThumbnail(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
url: '/this/path/does/not/exist.jpg',
})}
isThumbnail
/>
);
}
BrokenImageThumbnail.story = {
name: 'Broken Image (thumbnail)',
};
export const Video = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
contentType: VIDEO_MP4,
url: '/fixtures/pixabay-Soap-Bubble-7141.mp4',
})}
/>
);
export function Video(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
contentType: VIDEO_MP4,
url: '/fixtures/pixabay-Soap-Bubble-7141.mp4',
})}
/>
);
}
export const ErrorImage = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
error: true,
url: '/this/path/does/not/exist.jpg',
})}
/>
);
export function ErrorImage(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
error: true,
url: '/this/path/does/not/exist.jpg',
})}
/>
);
}
export const ErrorImageThumbnail = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
error: true,
url: '/this/path/does/not/exist.jpg',
})}
isThumbnail
/>
);
export function ErrorImageThumbnail(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
attachment={fakeAttachment({
error: true,
url: '/this/path/does/not/exist.jpg',
})}
isThumbnail
/>
);
}
ErrorImageThumbnail.story = {
name: 'Error Image (thumbnail)',
};
export const ErrorImageYou = (): JSX.Element => (
<StoryImage
{...getDefaultProps()}
isMe
attachment={fakeAttachment({
error: true,
url: '/this/path/does/not/exist.jpg',
})}
/>
);
export function ErrorImageYou(): JSX.Element {
return (
<StoryImage
{...getDefaultProps()}
isMe
attachment={fakeAttachment({
error: true,
url: '/this/path/does/not/exist.jpg',
})}
/>
);
}