Use Prettier for ESLint formatting TypeScript (#23631)
This commit is contained in:
parent
6aeb162927
commit
51b83ed195
31 changed files with 407 additions and 245 deletions
|
@ -1,8 +1,8 @@
|
|||
export function uuid(a?: string): string {
|
||||
return a
|
||||
? (
|
||||
(a as any as number) ^
|
||||
(a as any as number) ^
|
||||
((Math.random() * 16) >> ((a as any as number) / 4))
|
||||
).toString(16)
|
||||
).toString(16)
|
||||
: ('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue