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/es/spanish-transforms.js | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'ext/js/language/es') diff --git a/ext/js/language/es/spanish-transforms.js b/ext/js/language/es/spanish-transforms.js index cf145f6a..f2b503a6 100644 --- a/ext/js/language/es/spanish-transforms.js +++ b/ext/js/language/es/spanish-transforms.js @@ -22,7 +22,7 @@ const ACCENTS = new Map([ ['e', 'é'], ['i', 'í'], ['o', 'ó'], - ['u', 'ú'] + ['u', 'ú'], ]); @@ -41,37 +41,37 @@ export const spanishTransforms = { v: { name: 'Verb', isDictionaryForm: true, - subConditions: ['v_ar', 'v_er', 'v_ir'] + subConditions: ['v_ar', 'v_er', 'v_ir'], }, v_ar: { name: '-ar verb', - isDictionaryForm: true + isDictionaryForm: true, }, v_er: { name: '-er verb', - isDictionaryForm: true + isDictionaryForm: true, }, v_ir: { name: '-ir verb', - isDictionaryForm: true + isDictionaryForm: true, }, n: { name: 'Noun', isDictionaryForm: true, - subConditions: ['ns', 'np'] + subConditions: ['ns', 'np'], }, np: { name: 'Noun plural', - isDictionaryForm: true + isDictionaryForm: true, }, ns: { name: 'Noun singular', - isDictionaryForm: true + isDictionaryForm: true, }, adj: { name: 'Adjective', - isDictionaryForm: true - } + isDictionaryForm: true, + }, }, transforms: [ { @@ -82,15 +82,15 @@ export const spanishTransforms = { suffixInflection('es', '', ['np'], ['ns']), suffixInflection('ces', 'z', ['np'], ['ns']), // 'lápices' -> lápiz ...[...'aeiou'].map((v) => suffixInflection(`${v}ses`, `${addAccent(v)}s`, ['np'], ['ns'])), // 'autobuses' -> autobús - ...[...'aeiou'].map((v) => suffixInflection(`${v}nes`, `${addAccent(v)}n`, ['np'], ['ns'])) // 'canciones' -> canción - ] + ...[...'aeiou'].map((v) => suffixInflection(`${v}nes`, `${addAccent(v)}n`, ['np'], ['ns'])), // 'canciones' -> canción + ], }, { name: 'feminine adjective', description: 'feminine form of an adjective', rules: [ - suffixInflection('a', 'o', ['adj'], ['adj']) - ] + suffixInflection('a', 'o', ['adj'], ['adj']), + ], }, { name: 'present indicative', @@ -164,8 +164,8 @@ export const spanishTransforms = { wholeWordInflection('ha', 'haber', ['v'], ['v']), wholeWordInflection('hemos', 'haber', ['v'], ['v']), wholeWordInflection('habéis', 'haber', ['v'], ['v']), - wholeWordInflection('han', 'haber', ['v'], ['v']) - ] - } - ] + wholeWordInflection('han', 'haber', ['v'], ['v']), + ], + }, + ], }; -- cgit v1.2.3