aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/de/german-transforms.js
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/de/german-transforms.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/language/de/german-transforms.js')
-rw-r--r--ext/js/language/de/german-transforms.js34
1 files changed, 17 insertions, 17 deletions
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,
+ ],
+ },
+ ],
};