mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
ESLint: warn for deprecated constructs
This commit is contained in:
1 parent
11a0744edc
commit
3636d615db
5 files changed
+32
-10
No files matched your search
@@ -49,7 +49,11 @@ export function snowflakeBasedInvite() {
|
||||
snowflake = snowflake / base;
|
||||
}
|
||||
|
||||
return str.substr(3, 8).split("").reverse().join("");
|
||||
return str
|
||||
.slice(3, 3 + 8)
|
||||
.split("")
|
||||
.reverse()
|
||||
.join("");
|
||||
}
|
||||
|
||||
export function randomUpperString(length: number = 10) {
|
||||
|
||||
Reference in new issue
Block a user