summaryrefslogtreecommitdiff
path: root/ext/js/data/json-schema.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/data/json-schema.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/data/json-schema.js')
-rw-r--r--ext/js/data/json-schema.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/data/json-schema.js b/ext/js/data/json-schema.js
index 0a2b8d82..65bbe8ce 100644
--- a/ext/js/data/json-schema.js
+++ b/ext/js/data/json-schema.js
@@ -355,8 +355,8 @@ export class JsonSchema {
schema: propertySchema,
stack: [
{schema: properties, path: 'properties'},
- {schema: propertySchema, path: property}
- ]
+ {schema: propertySchema, path: property},
+ ],
};
}
}
@@ -380,8 +380,8 @@ export class JsonSchema {
schema: itemSchema,
stack: [
{schema: prefixItems, path: 'prefixItems'},
- {schema: itemSchema, path: index}
- ]
+ {schema: itemSchema, path: index},
+ ],
};
}
}
@@ -395,15 +395,15 @@ export class JsonSchema {
schema: itemSchema,
stack: [
{schema: items, path: 'items'},
- {schema: itemSchema, path: index}
- ]
+ {schema: itemSchema, path: index},
+ ],
};
}
}
} else {
return {
schema: items,
- stack: [{schema: items, path: 'items'}]
+ stack: [{schema: items, path: 'items'}],
};
}
}
@@ -517,7 +517,7 @@ export class JsonSchema {
const {schema: schema2, stack: stack2} = this._getReference(ref);
return {
schema: schema2,
- stack: [...stack, ...stack2]
+ stack: [...stack, ...stack2],
};
}
}