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

@ -32,7 +32,7 @@ export default {
title: 'Components/DialogUpdate',
};
export const KnobsPlayground = (): JSX.Element => {
export function KnobsPlayground(): JSX.Element {
const containerWidthBreakpoint = select(
'containerWidthBreakpoint',
WidthBreakpoint,
@ -54,277 +54,313 @@ export const KnobsPlayground = (): JSX.Element => {
/>
</FakeLeftPaneContainer>
);
};
}
export const UpdateWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
dialogType={DialogType.Update}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
);
export function UpdateWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
dialogType={DialogType.Update}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
);
}
UpdateWide.story = {
name: 'Update (Wide)',
};
export const DownloadReadyWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.DownloadReady}
downloadSize={30123456}
/>
</FakeLeftPaneContainer>
);
export function DownloadReadyWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.DownloadReady}
downloadSize={30123456}
/>
</FakeLeftPaneContainer>
);
}
DownloadReadyWide.story = {
name: 'DownloadReady (Wide)',
};
export const FullDownloadReadyWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.FullDownloadReady}
downloadSize={300123456}
/>
</FakeLeftPaneContainer>
);
export function FullDownloadReadyWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.FullDownloadReady}
downloadSize={300123456}
/>
</FakeLeftPaneContainer>
);
}
FullDownloadReadyWide.story = {
name: 'FullDownloadReady (Wide)',
};
export const DownloadingWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.Downloading}
/>
</FakeLeftPaneContainer>
);
export function DownloadingWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.Downloading}
/>
</FakeLeftPaneContainer>
);
}
DownloadingWide.story = {
name: 'Downloading (Wide)',
};
export const CannotUpdateWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateWide.story = {
name: 'Cannot_Update (Wide)',
};
export const CannotUpdateBetaWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateBetaWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateBetaWide.story = {
name: 'Cannot_Update_Beta (Wide)',
};
export const CannotUpdateRequireManualWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateRequireManualWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateRequireManualWide.story = {
name: 'Cannot_Update_Require_Manual (Wide)',
};
export const CannotUpdateRequireManualBetaWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateRequireManualBetaWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateRequireManualBetaWide.story = {
name: 'Cannot_Update_Require_Manual_Beta (Wide)',
};
export const MacOSReadOnlyWide = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.MacOS_Read_Only}
/>
</FakeLeftPaneContainer>
);
export function MacOSReadOnlyWide(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Wide}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Wide}
currentVersion="5.24.0"
dialogType={DialogType.MacOS_Read_Only}
/>
</FakeLeftPaneContainer>
);
}
MacOSReadOnlyWide.story = {
name: 'MacOS_Read_Only (Wide)',
};
export const UpdateNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
dialogType={DialogType.Update}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
);
export function UpdateNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
dialogType={DialogType.Update}
currentVersion="5.24.0"
/>
</FakeLeftPaneContainer>
);
}
UpdateNarrow.story = {
name: 'Update (Narrow)',
};
export const DownloadReadyNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.DownloadReady}
downloadSize={30123456}
/>
</FakeLeftPaneContainer>
);
export function DownloadReadyNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.DownloadReady}
downloadSize={30123456}
/>
</FakeLeftPaneContainer>
);
}
DownloadReadyNarrow.story = {
name: 'DownloadReady (Narrow)',
};
export const FullDownloadReadyNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.FullDownloadReady}
downloadSize={300123456}
/>
</FakeLeftPaneContainer>
);
export function FullDownloadReadyNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.FullDownloadReady}
downloadSize={300123456}
/>
</FakeLeftPaneContainer>
);
}
FullDownloadReadyNarrow.story = {
name: 'FullDownloadReady (Narrow)',
};
export const DownloadingNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.Downloading}
/>
</FakeLeftPaneContainer>
);
export function DownloadingNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.Downloading}
/>
</FakeLeftPaneContainer>
);
}
DownloadingNarrow.story = {
name: 'Downloading (Narrow)',
};
export const CannotUpdateNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateNarrow.story = {
name: 'Cannot Update (Narrow)',
};
export const CannotUpdateBetaNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateBetaNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateBetaNarrow.story = {
name: 'Cannot Update Beta (Narrow)',
};
export const CannotUpdateRequireManualNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateRequireManualNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateRequireManualNarrow.story = {
name: 'Cannot_Update_Require_Manual (Narrow)',
};
export const CannotUpdateRequireManualBetaNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
export function CannotUpdateRequireManualBetaNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0-beta.1"
dialogType={DialogType.Cannot_Update_Require_Manual}
/>
</FakeLeftPaneContainer>
);
}
CannotUpdateRequireManualBetaNarrow.story = {
name: 'Cannot_Update_Require_Manual_Beta (Narrow)',
};
export const MacOSReadOnlyNarrow = (): JSX.Element => (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.MacOS_Read_Only}
/>
</FakeLeftPaneContainer>
);
export function MacOSReadOnlyNarrow(): JSX.Element {
return (
<FakeLeftPaneContainer containerWidthBreakpoint={WidthBreakpoint.Narrow}>
<DialogUpdate
{...defaultProps}
containerWidthBreakpoint={WidthBreakpoint.Narrow}
currentVersion="5.24.0"
dialogType={DialogType.MacOS_Read_Only}
/>
</FakeLeftPaneContainer>
);
}
MacOSReadOnlyNarrow.story = {
name: 'MacOS_Read_Only (Narrow)',