[build] upgrade eslint to 9.37.0 (#88)

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88
Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org>
Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
Zoë Bijl
2025-10-12 13:42:02 +02:00
committed by tobi
parent 75d7a62693
commit 1ff70886a1
975 changed files with 22196 additions and 21964 deletions
@@ -1,10 +1,9 @@
/* eslint-disable import/no-commonjs --
We need to use CommonJS here as its imported into a preval file (`emoji_compressed.js`) */
// taken from:
// https://github.com/twitter/twemoji/blob/47732c7/twemoji-generator.js#L848-L866
exports.unicodeToFilename = (str) => {
let result = '';
let result = "";
let charCode = 0;
let p = 0;
let i = 0;
@@ -12,7 +11,7 @@ exports.unicodeToFilename = (str) => {
charCode = str.charCodeAt(i++);
if (p) {
if (result.length > 0) {
result += '-';
result += "-";
}
result += (0x10000 + ((p - 0xD800) << 10) + (charCode - 0xDC00)).toString(16);
p = 0;
@@ -20,7 +19,7 @@ exports.unicodeToFilename = (str) => {
p = charCode;
} else {
if (result.length > 0) {
result += '-';
result += "-";
}
result += charCode.toString(16);
}