aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/es
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/language/es
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/language/es')
-rw-r--r--ext/js/language/es/spanish-transforms.js36
1 files changed, 18 insertions, 18 deletions
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']),
+ ],
+ },
+ ],
};