mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
chore(lint): switched to a better lint config
This commit is contained in:
committed by
Corentin THOMASSET
parent
4d2b037dbe
commit
33c9b6643f
@@ -38,9 +38,11 @@ function getFriendlyValue({ claim, value }: { claim: string; value: unknown }) {
|
||||
.otherwise(() => undefined);
|
||||
}
|
||||
|
||||
const dateFormatter = (value: unknown) => {
|
||||
if (_.isNil(value)) return undefined;
|
||||
function dateFormatter(value: unknown) {
|
||||
if (_.isNil(value)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const date = new Date(Number(value) * 1000);
|
||||
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user