lint: Require semicolons

This commit is contained in:
Cohee
2023-12-02 21:11:06 +02:00
parent 2ec14a59ee
commit c63cd87cc0
67 changed files with 1554 additions and 1552 deletions

View File

@@ -4,7 +4,7 @@ export {
regex_placement,
getRegexedString,
runRegexScript
}
};
const regex_placement = {
// MD Display is deprecated. Do not use.
@@ -12,12 +12,12 @@ const regex_placement = {
USER_INPUT: 1,
AI_OUTPUT: 2,
SLASH_COMMAND: 3
}
};
const regex_replace_strategy = {
REPLACE: 0,
OVERLAY: 1
}
};
// Originally from: https://github.com/IonicaBizau/regex-parser.js/blob/master/lib/index.js
function regexFromString(input) {

View File

@@ -119,7 +119,7 @@ async function onRegexEditorOpenClick(existingId) {
if (existingScript.scriptName) {
editorHtml.find('.regex_script_name').val(existingScript.scriptName);
} else {
toastr.error('This script doesn\'t have a name! Please delete it.')
toastr.error('This script doesn\'t have a name! Please delete it.');
return;
}
@@ -176,7 +176,7 @@ async function onRegexEditorOpenClick(existingId) {
editorHtml
.find('input[name="replace_position"]')
.filter(':checked')
.map(function () { return parseInt($(this).val()) })
.map(function () { return parseInt($(this).val()); })
.get()
.filter((e) => !isNaN(e)) || [],
disabled:
@@ -222,8 +222,8 @@ function migrateSettings() {
Object.values(regex_placement).filter((e) => e !== regex_placement.MD_DISPLAY) :
script.placement = script.placement.filter((e) => e !== regex_placement.MD_DISPLAY);
script.markdownOnly = true
script.promptOnly = true
script.markdownOnly = true;
script.promptOnly = true;
performSave = true;
}