diff options
author | James Maa <jmaa@berkeley.edu> | 2024-05-31 08:06:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 15:06:52 +0000 |
commit | 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch) | |
tree | bdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/language/ja/japanese-text-preprocessors.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/language/ja/japanese-text-preprocessors.js')
-rw-r--r-- | ext/js/language/ja/japanese-text-preprocessors.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/language/ja/japanese-text-preprocessors.js b/ext/js/language/ja/japanese-text-preprocessors.js index 32e45c83..2d0d23b3 100644 --- a/ext/js/language/ja/japanese-text-preprocessors.js +++ b/ext/js/language/ja/japanese-text-preprocessors.js @@ -23,7 +23,7 @@ import { convertFullWidthAlphanumericToNormal, convertHalfWidthKanaToFullWidth, convertHiraganaToKatakana as convertHiraganaToKatakanaFunction, - convertKatakanaToHiragana as convertKatakanaToHiraganaFunction + convertKatakanaToHiragana as convertKatakanaToHiraganaFunction, } from './japanese.js'; /** @type {import('language').TextProcessor<boolean>} */ @@ -31,7 +31,7 @@ export const convertHalfWidthCharacters = { name: 'Convert half width characters to full width', description: 'ヨミチャン → ヨミチャン', options: basicTextProcessorOptions, - process: (str, setting) => (setting ? convertHalfWidthKanaToFullWidth(str) : str) + process: (str, setting) => (setting ? convertHalfWidthKanaToFullWidth(str) : str), }; @@ -40,7 +40,7 @@ export const alphabeticToHiragana = { name: 'Convert alphabetic characters to hiragana', description: 'yomichan → よみちゃん', options: basicTextProcessorOptions, - process: (str, setting) => (setting ? convertAlphabeticToKana(str) : str) + process: (str, setting) => (setting ? convertAlphabeticToKana(str) : str), }; /** @type {import('language').BidirectionalConversionPreprocessor} */ @@ -57,7 +57,7 @@ export const alphanumericWidthVariants = { case 'inverse': return convertAlphanumericToFullWidth(str); } - } + }, }; /** @type {import('language').BidirectionalConversionPreprocessor} */ @@ -74,7 +74,7 @@ export const convertHiraganaToKatakana = { case 'inverse': return convertKatakanaToHiraganaFunction(str); } - } + }, }; /** @type {import('language').TextProcessor<[collapseEmphatic: boolean, collapseEmphaticFull: boolean]>} */ @@ -88,5 +88,5 @@ export const collapseEmphaticSequences = { str = collapseEmphaticSequencesFunction(str, collapseEmphaticFull); } return str; - } + }, }; |