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
@@ -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);
}