[skip ci] Re-add removed lint rules
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -86,7 +86,7 @@ const handleDownload = async (
|
||||
return;
|
||||
}
|
||||
|
||||
const mangaId = mangaIds[0];
|
||||
const [mangaId] = mangaIds;
|
||||
const manga = Mangas.getFromCache(
|
||||
mangaId,
|
||||
gql`
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user