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

@@ -28,21 +28,21 @@ $(function () {
Today: [moment().startOf("day"), moment()],
Yesterday: [
moment().subtract(1, "days").startOf("day"),
moment().subtract(1, "days").endOf("day")
moment().subtract(1, "days").endOf("day"),
],
"Last 7 Days": [moment().subtract(6, "days"), moment()],
"Last 30 Days": [moment().subtract(29, "days"), moment()],
"This Month": [moment().startOf("month"), moment()],
"Last Month": [
moment().subtract(1, "month").startOf("month"),
moment().subtract(1, "month").endOf("month")
moment().subtract(1, "month").endOf("month"),
],
"This Year": [moment().startOf("year"), moment()],
"All Time": [moment(0), moment()]
"All Time": [moment(0), moment()],
},
opens: "center",
showDropdowns: true,
autoUpdateInput: false
autoUpdateInput: false,
},
function (startt, endt) {
from = moment(startt).utc().valueOf() / 1000;
@@ -166,7 +166,7 @@ $(function () {
pointRadius: 1,
pointHoverRadius: 5,
data: [],
pointHitRadius: 5
pointHitRadius: 5,
},
{
label: "Permitted DNS Queries",
@@ -177,9 +177,9 @@ $(function () {
pointRadius: 1,
pointHoverRadius: 5,
data: [],
pointHitRadius: 5
}
]
pointHitRadius: 5,
},
],
},
options: {
tooltips: {
@@ -267,11 +267,11 @@ $(function () {
}
return data.datasets[tooltipItems.datasetIndex].label + ": " + tooltipItems.yLabel;
}
}
},
},
},
legend: {
display: false
display: false,
},
scales: {
xAxes: [
@@ -287,22 +287,22 @@ $(function () {
week: "MMM DD",
month: "MMM",
quarter: "MMM",
year: "YYYY MMM"
}
}
}
year: "YYYY MMM",
},
},
},
],
yAxes: [
{
stacked: true,
ticks: {
beginAtZero: true
}
}
]
beginAtZero: true,
},
},
],
},
maintainAspectRatio: false
}
maintainAspectRatio: false,
},
});
});