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/de | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'ext/js/language/de')
-rw-r--r-- | ext/js/language/de/german-text-preprocessors.js | 2 | ||||
-rw-r--r-- | ext/js/language/de/german-transforms.js | 34 |
2 files changed, 18 insertions, 18 deletions
diff --git a/ext/js/language/de/german-text-preprocessors.js b/ext/js/language/de/german-text-preprocessors.js index e829bf81..7f30ddac 100644 --- a/ext/js/language/de/german-text-preprocessors.js +++ b/ext/js/language/de/german-text-preprocessors.js @@ -30,5 +30,5 @@ export const eszettPreprocessor = { case 'inverse': return str.replace(/SS/g, 'ẞ').replace(/ss/g, 'ß'); } - } + }, }; diff --git a/ext/js/language/de/german-transforms.js b/ext/js/language/de/german-transforms.js index d05ca874..27b13c6a 100644 --- a/ext/js/language/de/german-transforms.js +++ b/ext/js/language/de/german-transforms.js @@ -36,7 +36,7 @@ function separatedPrefix(prefix, conditionsIn, conditionsOut) { return term.replace(regex, '$1 ' + prefix); }, conditionsIn, - conditionsOut + conditionsOut, }; } @@ -53,16 +53,16 @@ export const germanTransforms = { conditions: { v: { name: 'Verb', - isDictionaryForm: true + isDictionaryForm: true, }, n: { name: 'Noun', - isDictionaryForm: true + isDictionaryForm: true, }, adj: { name: 'Adjective', - isDictionaryForm: true - } + isDictionaryForm: true, + }, }, transforms: [ { @@ -70,37 +70,37 @@ export const germanTransforms = { description: 'Noun formed from a verb', rules: [ suffixInflection('ung', 'en', [], []), - suffixInflection('lung', 'eln', [], []) - ] + suffixInflection('lung', 'eln', [], []), + ], }, { name: '-bar', description: '-able adjective from a verb', rules: [ suffixInflection('bar', 'en', [], ['v']), - suffixInflection('bar', 'n', [], ['v']) // Lieferbar - ] + suffixInflection('bar', 'n', [], ['v']), // Lieferbar + ], }, { name: 'negative', description: 'Negation', rules: [ - prefixInflection('un', '', [], ['adj']) - ] + prefixInflection('un', '', [], ['adj']), + ], }, { name: 'separated prefix', description: 'Separable prefix', rules: [ - ...separatedPrefixInflections - ] + ...separatedPrefixInflections, + ], }, { name: 'zu-infinitive', description: 'zu-infinitive', rules: [ - ...zuInfinitiveInflections - ] - } - ] + ...zuInfinitiveInflections, + ], + }, + ], }; |