Update dependency "eslint" to v9.x
v9.39.4
This commit is contained in:
@@ -18,10 +18,8 @@ export const ExtensionMetadata = ({
|
||||
<Metadata
|
||||
{...props}
|
||||
stackProps={{
|
||||
// eslint-disable-next-line react/destructuring-assignment
|
||||
...props.stackProps,
|
||||
sx: {
|
||||
// eslint-disable-next-line react/destructuring-assignment
|
||||
...props.stackProps?.sx,
|
||||
flexDirection: 'column-reverse',
|
||||
alignItems: 'center',
|
||||
@@ -30,7 +28,6 @@ export const ExtensionMetadata = ({
|
||||
},
|
||||
}}
|
||||
titleProps={{
|
||||
// eslint-disable-next-line react/destructuring-assignment
|
||||
...props.titleProps,
|
||||
variant: 'body2',
|
||||
}}
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import { findDuplicatesByTitleAndAlternativeTitles } from '@/features/library/util/LibraryDuplicates.util.ts';
|
||||
import { LibraryDuplicatesDescriptionWorkerInput } from '@/features/library/Library.types.ts';
|
||||
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
self.onmessage = (event: MessageEvent<LibraryDuplicatesDescriptionWorkerInput>) => {
|
||||
const { mangasToCheck, mangas } = event.data;
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@ import { enhancedCleanup } from '@/base/utils/Strings.ts';
|
||||
const queue = new Queue((navigator.hardwareConcurrency ?? 5) - 1);
|
||||
const MANGAS_PER_CHUNK = 200;
|
||||
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
self.onmessage = async (event: MessageEvent<LibraryDuplicatesWorkerInput>) => {
|
||||
const { mangas, checkAlternativeTitles } = event.data;
|
||||
|
||||
|
||||
@@ -168,16 +168,16 @@ const VerticalGrid = ({
|
||||
}
|
||||
/>
|
||||
</Box>
|
||||
{/* render div to prevent UI jumping around when showing/hiding loading placeholder */
|
||||
/* eslint-disable-next-line no-nested-ternary */}
|
||||
{/* render div to prevent UI jumping around when showing/hiding loading placeholder */}
|
||||
{/* eslint-disable no-nested-ternary */}
|
||||
{isSelectModeActive && gridLayout === GridLayout.List ? (
|
||||
<Box sx={{ paddingBottom: DEFAULT_FULL_FAB_HEIGHT }} />
|
||||
) : // eslint-disable-next-line no-nested-ternary
|
||||
isLoading ? (
|
||||
) : isLoading ? (
|
||||
<LoadingPlaceholder />
|
||||
) : hasNextPage ? (
|
||||
<div style={{ height: '75px' }} />
|
||||
) : null}
|
||||
{/* eslint-enable no-nested-ternary */}
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
@@ -548,6 +548,7 @@ export class Mangas {
|
||||
for (const migrationAction of migrationActions) {
|
||||
// the migration actions (copy, cleanup) are supposed to be run sequentially to ensure that the cleanup
|
||||
// only happens in case the copy succeeded
|
||||
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await performMigrationAction(migrationAction, ...actions);
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies,no-restricted-imports
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import deepmerge from '@mui/utils/deepmerge';
|
||||
import { AppMetadataKeys, IMetadataMigration } from '@/features/metadata/Metadata.types.ts';
|
||||
import {
|
||||
|
||||
@@ -67,6 +67,7 @@ export const MobileBottomBar = ({ navBarItems }: { navBarItems: NavbarItem[] })
|
||||
>
|
||||
{navBarItems.map(({ path, title, IconComponent, SelectedIconComponent, useBadge }) => (
|
||||
<BottomNavigationAction
|
||||
key={path}
|
||||
value={path}
|
||||
label={t(title)}
|
||||
icon={
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import { useEffect, useMemo } from 'react';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies,no-restricted-imports
|
||||
|
||||
import { requestManager } from '@/lib/requests/RequestManager.ts';
|
||||
import {
|
||||
requestMangaMetadataUpdate,
|
||||
|
||||
@@ -51,7 +51,7 @@ export const getMetadataServerSettings = async (): Promise<MetadataServerSetting
|
||||
const { data, error } = await requestManager.getGlobalMeta().response;
|
||||
|
||||
if (error) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
||||
// eslint-disable-next-line @typescript-eslint/only-throw-error
|
||||
throw error;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import { SortFilter } from '@/features/source/browse/components/filters/SortFilt
|
||||
import { TextFilter } from '@/features/source/browse/components/filters/TextFilter.tsx';
|
||||
import { TriStateFilter } from '@/features/source/browse/components/filters/TriStateFilter.tsx';
|
||||
// this can only cycle once, so should be fine
|
||||
// eslint-disable-next-line import/no-cycle
|
||||
|
||||
import { GroupFilter } from '@/features/source/browse/components/filters/GroupFilter.tsx';
|
||||
import { SeparatorFilter } from '@/features/source/browse/components/filters/SeparatorFilter.tsx';
|
||||
import { StyledFab } from '@/base/components/buttons/StyledFab.tsx';
|
||||
@@ -249,6 +249,7 @@ export function SourceOptions({
|
||||
<Stack sx={{ flexDirection: 'row' }}>
|
||||
{savedSearchNames.map((savedSearch) => (
|
||||
<Chip
|
||||
key={savedSearch}
|
||||
label={savedSearch}
|
||||
onClick={() => {
|
||||
setFilterOptions(false);
|
||||
|
||||
@@ -14,7 +14,7 @@ import ListItemText from '@mui/material/ListItemText';
|
||||
import Stack from '@mui/material/Stack';
|
||||
import Box from '@mui/material/Box';
|
||||
import React from 'react';
|
||||
// eslint-disable-next-line import/no-cycle
|
||||
|
||||
import { Options } from '@/features/source/browse/components/SourceOptions.tsx';
|
||||
import { SourceFilters } from '@/features/source/Source.types.ts';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
useTheme,
|
||||
} from '@mui/material/styles';
|
||||
import { useCallback } from 'react';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies,no-restricted-imports
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { deepmerge } from '@mui/utils';
|
||||
import { complement, hsl, parseToHsl } from 'polished';
|
||||
import { HslaColor, HslColor } from 'polished/lib/types/color';
|
||||
|
||||
@@ -246,6 +246,7 @@ const TrackerActiveHeader = ({
|
||||
onClose={onClose}
|
||||
/>,
|
||||
<TrackerUpdatePrivateStatus
|
||||
key={`tracker-active-menu-item-private-${tracker.id}`}
|
||||
trackRecordId={trackRecord.id}
|
||||
isPrivate={trackRecord.private}
|
||||
closeMenu={onClose}
|
||||
|
||||
Reference in New Issue
Block a user