mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
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:
1 parent
3e4f0b6b5e
commit
8cb21c5fa8
16 files changed
+69
-69
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user