From 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 Mon Sep 17 00:00:00 2001 From: James Maa Date: Fri, 31 May 2024 08:06:52 -0700 Subject: Allow trailing commas in ESLint (#1013) * Update comma-dangle rule * Fix dangling commas --- ext/js/language/ja/japanese.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ext/js/language/ja/japanese.js') diff --git a/ext/js/language/ja/japanese.js b/ext/js/language/ja/japanese.js index 2200e077..bad773b3 100644 --- a/ext/js/language/ja/japanese.js +++ b/ext/js/language/ja/japanese.js @@ -63,7 +63,7 @@ const CJK_IDEOGRAPH_RANGES = [ CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E_RANGE, CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F_RANGE, CJK_COMPATIBILITY_IDEOGRAPHS_RANGE, - CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT_RANGE + CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT_RANGE, ]; /** @@ -90,7 +90,7 @@ const JAPANESE_RANGES = [ [0xff1a, 0xff1f], // Fullwidth punctuation 2 [0xff3b, 0xff3f], // Fullwidth punctuation 3 [0xff5b, 0xff60], // Fullwidth punctuation 4 - [0xffe0, 0xffee] // Currency markers + [0xffe0, 0xffee], // Currency markers ]; const SMALL_KANA_SET = new Set('ぁぃぅぇぉゃゅょゎァィゥェォャュョヮ'); @@ -151,7 +151,7 @@ const HALFWIDTH_KATAKANA_MAPPING = new Map([ ['レ', 'レ--'], ['ロ', 'ロ--'], ['ワ', 'ワ--'], - ['ン', 'ン--'] + ['ン', 'ン--'], ]); const VOWEL_TO_KANA_MAPPING = new Map([ @@ -160,7 +160,7 @@ const VOWEL_TO_KANA_MAPPING = new Map([ ['u', 'ぅうくぐすずっつづぬふぶぷむゅゆるゥウクグスズッツヅヌフブプムュユルヴ'], ['e', 'ぇえけげせぜてでねへべぺめれゑヶェエケゲセゼテデネヘベペメレヱヶヹ'], ['o', 'ぉおこごそぞとどのほぼぽもょよろをォオコゴソゾトドノホボポモョヨロヲヺ'], - ['', 'のノ'] + ['', 'のノ'], ]); /** @type {Map} */ @@ -255,7 +255,7 @@ function segmentizeFurigana(reading, readingNormalized, groups, groupsStart) { reading.substring(textLength), readingNormalized.substring(textLength), groups, - groupsStart + 1 + groupsStart + 1, ); if (segments !== null) { if (reading.startsWith(text)) { @@ -274,7 +274,7 @@ function segmentizeFurigana(reading, readingNormalized, groups, groupsStart) { reading.substring(i), readingNormalized.substring(i), groups, - groupsStart + 1 + groupsStart + 1, ); if (segments !== null) { if (result !== null) { -- cgit v1.2.3