From 7a142bbafd6aa6ca5fe296ba3012158d8f2e75dc Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 27 Jan 2024 04:01:37 -0500 Subject: Remove unneeded eslint disables (#554) * Install eslint-plugin-eslint-comments * Update rules, fix issues --- ext/js/language/sandbox/japanese-util.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'ext/js/language/sandbox') diff --git a/ext/js/language/sandbox/japanese-util.js b/ext/js/language/sandbox/japanese-util.js index 89f4d5ed..f9874cd4 100644 --- a/ext/js/language/sandbox/japanese-util.js +++ b/ext/js/language/sandbox/japanese-util.js @@ -190,7 +190,6 @@ for (let i = 0, ii = kana.length; i < ii; i += 3) { * @param {import('japanese-util').CodepointRange} range * @returns {boolean} */ -// eslint-disable-next-line no-implicit-globals function isCodePointInRange(codePoint, [min, max]) { return (codePoint >= min && codePoint <= max); } @@ -200,7 +199,6 @@ function isCodePointInRange(codePoint, [min, max]) { * @param {import('japanese-util').CodepointRange[]} ranges * @returns {boolean} */ -// eslint-disable-next-line no-implicit-globals function isCodePointInRanges(codePoint, ranges) { for (const [min, max] of ranges) { if (codePoint >= min && codePoint <= max) { @@ -214,7 +212,6 @@ function isCodePointInRanges(codePoint, ranges) { * @param {string} previousCharacter * @returns {?string} */ -// eslint-disable-next-line no-implicit-globals function getProlongedHiragana(previousCharacter) { switch (KANA_TO_VOWEL_MAPPING.get(previousCharacter)) { case 'a': return 'あ'; -- cgit v1.2.3