mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +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
@@ -375,7 +375,7 @@ const outputHeuristics = [
|
||||
filter: { type: "log", message: /^updateTick\(\d+\) changing state from\(CreatingGame\) to\(InGame\)$/ },
|
||||
action: function(output) {
|
||||
this._notifyGameReady().catch((err) => { this.emit("error", err); });
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
// Message indicating the server has started an autosave
|
||||
@@ -414,14 +414,14 @@ const outputHeuristics = [
|
||||
},
|
||||
action: function(output) {
|
||||
this.emit("_saved");
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
// Message indicating the server is shutting down
|
||||
{
|
||||
filter: {
|
||||
type: "generic",
|
||||
message: /^Quitting: /
|
||||
message: /^Quitting: /,
|
||||
},
|
||||
action: function(output) {
|
||||
this.emit("_quitting");
|
||||
@@ -432,7 +432,7 @@ const outputHeuristics = [
|
||||
if (process.platform === "win32" && output.message === "Quitting: multiplayer error.") {
|
||||
this._server.kill();
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
// Messages that might be tha cause of an unexpected shutdown.
|
||||
@@ -1047,7 +1047,7 @@ class FactorioServer extends events.EventEmitter {
|
||||
path: {
|
||||
"read-data": this.dataPath(),
|
||||
"write-data": this.writePath(),
|
||||
}
|
||||
},
|
||||
});
|
||||
await fs.outputFile(this.writePath("config.ini"), content);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user