Run pre-commit hooks over existing codebase

Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
shamoon
2023-10-18 09:49:33 -07:00
co-authored by Ben Phelps
parent fa50bbad9c
commit 19c25713c4
387 changed files with 4785 additions and 4109 deletions
+7 -3
View File
@@ -15,11 +15,15 @@ function formatDate(dateString) {
hour: "numeric",
minute: "numeric",
};
if (date.getFullYear() === now.getFullYear() && date.getMonth() === now.getMonth() && date.getDate() === now.getDate()) {
if (
date.getFullYear() === now.getFullYear() &&
date.getMonth() === now.getMonth() &&
date.getDate() === now.getDate()
) {
dateOptions = { timeStyle: "short" };
}
return new Intl.DateTimeFormat(i18n.language, dateOptions).format(date);
}
+1 -4
View File
@@ -7,10 +7,7 @@ const widget = {
mappings: {
checks: {
endpoint: "checks",
validate: [
"status",
"last_ping",
]
validate: ["status", "last_ping"],
},
},
};