We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@typescript-eslint/no-misused-spread
1 parent 8702023 commit ca88321Copy full SHA for ca88321
src/ts/common/translator.ts
@@ -33,7 +33,7 @@ class Translator {
33
let result = text;
34
35
for (const targetEmoji of ALLOWED_TWEMOJI) {
36
- // eslint-disable-next-line no-magic-numbers
+ // eslint-disable-next-line no-magic-numbers, @typescript-eslint/no-misused-spread
37
const codePoints = [...targetEmoji].map((emoji) => emoji.codePointAt(0)?.toString(16)).join("-");
38
const twemojiURL = new URL(`${codePoints}.svg`, this.twemojiEndpoint).href;
39
const img = `<img src="${twemojiURL}" alt="${targetEmoji}" class="twemoji">`;
0 commit comments