ESLint: warn for deprecated constructs

This commit is contained in:
Rory&
2025-12-19 19:35:54 +01:00
parent 11a0744edc
commit 3636d615db
5 changed files with 32 additions and 10 deletions
+5 -1
View File
@@ -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) {