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

@@ -46,7 +46,7 @@ $(function () {
ajax: {
url: "scripts/pi-hole/php/customdns.php",
data: { action: "get", token: token },
type: "POST"
type: "POST",
},
columns: [{}, { type: "ip-address" }, { orderable: false, searchable: false }],
columnDefs: [
@@ -62,12 +62,12 @@ $(function () {
'<span class="far fa-trash-alt"></span>' +
"</button>"
);
}
}
},
},
],
lengthMenu: [
[10, 25, 50, 100, -1],
[10, 25, 50, 100, "All"]
[10, 25, 50, 100, "All"],
],
order: [[0, "asc"]],
stateSave: true,
@@ -79,7 +79,7 @@ $(function () {
},
drawCallback: function () {
$(".deleteCustomDNS").on("click", deleteCustomDNS);
}
},
});
// Disable autocorrect in the search box
var input = document.querySelector("input[type=search]");
@@ -107,7 +107,7 @@ function addCustomDNS() {
},
error: function () {
showAlert("error", "Error while adding this custom DNS entry");
}
},
});
}
@@ -130,6 +130,6 @@ function deleteCustomDNS() {
error: function (jqXHR, exception) {
showAlert("error", "Error while deleting this custom DNS entry");
console.log(exception); // eslint-disable-line no-console
}
},
});
}