[skip ci] Re-add removed lint rules

This commit is contained in:
schroda
2026-03-14 02:10:25 +01:00
parent 0a643655ad
commit 80829febb2
10 changed files with 18 additions and 16 deletions

View File

@@ -162,7 +162,7 @@ export function Sources({ tabsMenuHeight }: { tabsMenuHeight: number }) {
);
}}
itemContent={(index, groupIndex) => {
const language = sourcesByLanguage[groupIndex][0];
const [language] = sourcesByLanguage[groupIndex];
const source = visibleSources[index];
return (

View File

@@ -86,7 +86,7 @@ const handleDownload = async (
return;
}
const mangaId = mangaIds[0];
const [mangaId] = mangaIds;
const manga = Mangas.getFromCache(
mangaId,
gql`

View File

@@ -86,8 +86,7 @@ export const useManageMangaLibraryState = (
let showAddToLibraryCategorySelectDialog: boolean;
try {
showAddToLibraryCategorySelectDialog = (await getMetadataServerSettings())
.showAddToLibraryCategorySelectDialog;
({ showAddToLibraryCategorySelectDialog } = await getMetadataServerSettings());
} catch (e) {
makeToast(t`Unable to load data`, 'error', getErrorMessage(e));
return;

View File

@@ -175,7 +175,7 @@ const getOutdatedMetadataKeys = (metadata: Metadata | undefined, migrationId: nu
);
return Object.keys(metadata).filter((key) => {
const appKeyPrefixOfKey = key.split('_')[0];
const [appKeyPrefixOfKey] = key.split('_');
const isMetadataKeyOfApp = [...oldAppKeyPrefixes, APP_METADATA_KEY_PREFIX].includes(appKeyPrefixOfKey);
if (!isMetadataKeyOfApp) {
@@ -367,7 +367,7 @@ export const applyMetadataMigrations = (
METADATA_MIGRATIONS.forEach((migration, index) => {
const migrationId = index + 1;
const metadataToMigrate = migrationToMetadata[migrationId - 1][1];
const [, metadataToMigrate] = migrationToMetadata[migrationId - 1];
const isMigrationRequired = appliedMigrationId < migrationId;
if (!isMigrationRequired) {