Fix eslint issues in tags.js

e26ea475543fe495ee5202845f574cb39988732b

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +4 -6Ignore whitespace
public/scripts/tags.js+4 -6
@@ -9,24 +9,21 @@ import {
9 eventSource,9 eventSource,
10 event_types,10 event_types,
11 DEFAULT_PRINT_TIMEOUT,11 DEFAULT_PRINT_TIMEOUT,
12 substituteParams,
13 printCharacters,12 printCharacters,
14} from '../script.js';13} from '../script.js';
15// eslint-disable-next-line no-unused-vars14// eslint-disable-next-line no-unused-vars
16import { FILTER_TYPES, FILTER_STATES, DEFAULT_FILTER_STATE, isFilterState, FilterHelper } from './filters.js';15import { FILTER_TYPES, FILTER_STATES, DEFAULT_FILTER_STATE, isFilterState, FilterHelper } from './filters.js';
1716
18import { groupCandidatesFilter, groups, select_group_chats, selected_group } from './group-chats.js';17import { groupCandidatesFilter, groups, selected_group } from './group-chats.js';
19import { download, onlyUnique, parseJsonFile, uuidv4, getSortableDelay, flashHighlight, equalsIgnoreCaseAndAccents, includesIgnoreCaseAndAccents, removeFromArray, getFreeName, debounce } from './utils.js';18import { download, onlyUnique, parseJsonFile, uuidv4, getSortableDelay, flashHighlight, equalsIgnoreCaseAndAccents, includesIgnoreCaseAndAccents, removeFromArray, getFreeName, debounce } from './utils.js';
20import { power_user } from './power-user.js';19import { power_user } from './power-user.js';
21import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';20import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
22import { SlashCommand } from './slash-commands/SlashCommand.js';21import { SlashCommand } from './slash-commands/SlashCommand.js';
23import { ARGUMENT_TYPE, SlashCommandArgument, SlashCommandNamedArgument } from './slash-commands/SlashCommandArgument.js';22import { ARGUMENT_TYPE, SlashCommandArgument, SlashCommandNamedArgument } from './slash-commands/SlashCommandArgument.js';
24import { isMobile } from './RossAscends-mods.js';23import { isMobile } from './RossAscends-mods.js';
25import { POPUP_RESULT, POPUP_TYPE, Popup, callGenericPopup } from './popup.js';24import { POPUP_RESULT, POPUP_TYPE, callGenericPopup } from './popup.js';
26import { debounce_timeout } from './constants.js';25import { debounce_timeout } from './constants.js';
27import { INTERACTABLE_CONTROL_CLASS } from './keyboard.js';26import { INTERACTABLE_CONTROL_CLASS } from './keyboard.js';
28import { SlashCommandEnumValue } from './slash-commands/SlashCommandEnumValue.js';
29import { SlashCommandExecutor } from './slash-commands/SlashCommandExecutor.js';
30import { commonEnumProviders } from './slash-commands/SlashCommandCommonEnumsProvider.js';27import { commonEnumProviders } from './slash-commands/SlashCommandCommonEnumsProvider.js';
31import { renderTemplateAsync } from './templates.js';28import { renderTemplateAsync } from './templates.js';
3229
@@ -53,6 +50,7 @@ export {
53 removeTagFromMap,50 removeTagFromMap,
54};51};
5552
53/** @typedef {import('../scripts/popup.js').Popup} Popup */
56/** @typedef {import('../script.js').Character} Character */54/** @typedef {import('../script.js').Character} Character */
5755
58const CHARACTER_FILTER_SELECTOR = '#rm_characters_block .rm_tag_filter';56const CHARACTER_FILTER_SELECTOR = '#rm_characters_block .rm_tag_filter';
@@ -815,7 +813,7 @@ async function showTagImportPopup(character, existingTags, newTags, folderTags)
815 wider: true, okButton: 'Import', cancelButton: true,813 wider: true, okButton: 'Import', cancelButton: true,
816 customButtons: Object.values(importButtons),814 customButtons: Object.values(importButtons),
817 customInputs: [{ id: 'import_remember_option', label: 'Remember my choice', tooltip: 'Remember the chosen import option\nIf anything besides \'Cancel\' is selected, this dialog will not show up anymore.\nTo change this, go to the settings and modify "Tag Import Option".\n\nIf the "Import" option is chosen, the global setting will stay on "Ask".' }],815 customInputs: [{ id: 'import_remember_option', label: 'Remember my choice', tooltip: 'Remember the chosen import option\nIf anything besides \'Cancel\' is selected, this dialog will not show up anymore.\nTo change this, go to the settings and modify "Tag Import Option".\n\nIf the "Import" option is chosen, the global setting will stay on "Ask".' }],
818 onClose: onCloseRemember816 onClose: onCloseRemember,
819 });817 });
820 if (!result) {818 if (!result) {
821 return [];819 return [];