mirror of
https://github.com/zadam/trilium.git
synced 2025-12-06 07:24:25 +01:00
lint format
This commit is contained in:
parent
d7f7ced902
commit
cce2bc7145
@ -86,7 +86,11 @@ function getNotePathData(note: BNote): NotePath | undefined {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatDateFromKeywordAndDelta(startingDate: dayjs.Dayjs, keyword: string, delta: number): string {
|
function formatDateFromKeywordAndDelta(
|
||||||
|
startingDate: dayjs.Dayjs,
|
||||||
|
keyword: string,
|
||||||
|
delta: number
|
||||||
|
): string {
|
||||||
const formatMap = new Map<string, { format: string, addUnit: dayjs.UnitType }>([
|
const formatMap = new Map<string, { format: string, addUnit: dayjs.UnitType }>([
|
||||||
["today", { format: "YYYY-MM-DD", addUnit: "day" }],
|
["today", { format: "YYYY-MM-DD", addUnit: "day" }],
|
||||||
["month", { format: "YYYY-MM", addUnit: "month" }],
|
["month", { format: "YYYY-MM", addUnit: "month" }],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user