Change prettier option trailingComma from "none" to the new default "es5" (see https://prettier.io/docs/en/options.html#trailing-commas)

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2021-06-23 11:26:43 +02:00
parent 731bb98820
commit 0d0a8dba67
20 changed files with 192 additions and 192 deletions

View File

@@ -14,7 +14,7 @@ function escapeHtml(text) {
"<": "&lt;",
">": "&gt;",
'"': "&quot;",
"'": "&#039;"
"'": "&#039;",
};
if (text === null) return null;
@@ -30,7 +30,7 @@ function unescapeHtml(text) {
"&lt;": "<",
"&gt;": ">",
"&quot;": '"',
"&#039;": "'"
"&#039;": "'",
};
if (text === null) return null;
@@ -72,7 +72,7 @@ function showAlert(type, icon, title, message) {
type: "info",
icon: "far fa-clock",
title: title,
message: message
message: message,
};
info = $.notify(opts);
break;
@@ -81,7 +81,7 @@ function showAlert(type, icon, title, message) {
type: "success",
icon: icon,
title: title,
message: message
message: message,
};
if (info) {
info.update(opts);
@@ -95,7 +95,7 @@ function showAlert(type, icon, title, message) {
type: "warning",
icon: "fas fa-exclamation-triangle",
title: title,
message: message
message: message,
};
if (info) {
info.update(opts);
@@ -109,7 +109,7 @@ function showAlert(type, icon, title, message) {
type: "danger",
icon: "fas fa-times",
title: "&nbsp;<strong>Error, something went wrong!</strong><br>",
message: message
message: message,
};
if (info) {
info.update(opts);
@@ -284,7 +284,7 @@ function addFromQueryLog(domain, list) {
list: list,
token: token,
action: "replace_domain",
comment: "Added from Query Log"
comment: "Added from Query Log",
},
success: function (response) {
alProcessing.hide();
@@ -314,7 +314,7 @@ function addFromQueryLog(domain, list) {
setTimeout(function () {
alertModal.modal("hide");
}, 8000);
}
},
});
});
@@ -346,6 +346,6 @@ window.utils = (function () {
getGraphType: getGraphType,
validateMAC: validateMAC,
validateHostname: validateHostname,
addFromQueryLog: addFromQueryLog
addFromQueryLog: addFromQueryLog,
};
})();