chore: lint and fmt

This commit is contained in:
Julien Calixte
2026-03-28 09:38:55 +01:00
parent 8e8706e258
commit 5f48aa5690
108 changed files with 726 additions and 680 deletions

View File

@@ -1,18 +1,18 @@
export const filenameToNoteTitle = (title: string) =>
title.replaceAll('/', ' / ').replaceAll('-', ' ')
title.replaceAll("/", " / ").replaceAll("-", " ")
export const pathToNotePathTitle = (path: string) => {
const fileNames = path.split('.')
const fileNames = path.split(".")
fileNames.pop()
return fileNames
.join('.')
.split('/')
.filter((path) => !path.includes('README'))
.join('/')
.replaceAll('-', ' ')
.join(".")
.split("/")
.filter((path) => !path.includes("README"))
.join("/")
.replaceAll("-", " ")
}
export const pathToNoteTitle = (notePathTitle: string) => {
return pathToNotePathTitle(notePathTitle).split('/').pop()?.trim() ?? ''
return pathToNotePathTitle(notePathTitle).split("/").pop()?.trim() ?? ""
}