[Glitch] Enforce stricter rules for Typescript files

Port c8181eb0a4 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Renaud Chaput
2023-05-09 03:11:56 +02:00
committed by Claire
parent b509b96504
commit 5f2071d055
126 changed files with 171 additions and 182 deletions

View File

@@ -1,3 +1,3 @@
export default function uuid(a?: string): string {
export function uuid(a?: string): string {
return a ? ((a as any as number) ^ Math.random() * 16 >> (a as any as number) / 4).toString(16) : ('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
}