Add dangling commas

Ensure multiline object and array litterals are consistenly typed out
with dangling commas for the last element.
This commit is contained in:
Hornwitser committed 2020-06-17 20:59:37 +02:00
1 parent 3e4f0b6b5e
commit 8cb21c5fa8
16 files changed
+69 -69

No files matched your search

+5 -5
View File
@@ -122,7 +122,7 @@ class Request extends Message {
},
],
},
}
},
});
}
@@ -448,7 +448,7 @@ messages.sendRcon = new Request({
},
responseProperties: {
"result": { type: "string" },
}
},
});
messages.listPermissions = new Request({
@@ -503,7 +503,7 @@ messages.createRole = new Request({
},
responseProperties: {
"id": { type: "integer" },
}
},
});
messages.updateRole = new Request({
@@ -697,7 +697,7 @@ class Event extends Message {
if (
this.broadcastTo === "instance"
&& [
"instance-slave", "slave-master", "control-master", "master-slave"
"instance-slave", "slave-master", "control-master", "master-slave",
].includes(`${link.target}-${link.source}`)
) {
if (!handler) {
@@ -759,7 +759,7 @@ messages.instanceInitialized = new Event({
"plugins": {
type: "object",
additionalProperties: { type: "string" },
}
},
},
});
messages.instanceStarted = new Event({