Bump babel and eslint (#9049)

This commit is contained in:
Bram Kragten
2021-04-30 21:15:31 +02:00
committed by GitHub
parent d4118ade0f
commit 5754f4463d
244 changed files with 1814 additions and 2804 deletions

View File

@@ -45,16 +45,13 @@ const i18n = {
clear: "Clear",
today: "Today",
cancel: "Cancel",
formatTitle: (monthName, fullYear) => {
return monthName + " " + fullYear;
},
formatDate: (d: { day: number; month: number; year: number }) => {
return [
formatTitle: (monthName, fullYear) => monthName + " " + fullYear,
formatDate: (d: { day: number; month: number; year: number }) =>
[
("0000" + String(d.year)).slice(-4),
("0" + String(d.month + 1)).slice(-2),
("0" + String(d.day)).slice(-2),
].join("-");
},
].join("-"),
parseDate: (text: string) => {
const parts = text.split("-");
const today = new Date();