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
@@ -54,7 +54,7 @@ async function listMods(config, instance) {
factorioAPI.authenticate({
username: config.username,
token: config.token,
require_ownership: false
require_ownership: false,
}).then(token => {
console.log("* Currently installed:");
factorioAPI.readModZips().then(list => {
@@ -84,7 +84,7 @@ async function listMods(config, instance) {
factorioAPI.authenticate({
username: config.username,
token: config.token,
require_ownership: false
require_ownership: false,
}).then(() => {
console.log("\r\n");
console.log("* Mods shared by all instances:");
@@ -119,7 +119,7 @@ async function findMods(config, searchTerm) {
factorioAPI.authenticate({
username: config.username,
token: config.token,
require_ownership: false
require_ownership: false,
}).then(token => {
factorioAPI.searchMods(searchTerm).then(mods => {
let result = asTable(mods.reverse().map(mod => {
@@ -157,7 +157,7 @@ async function addMod(config, term, instance) {
factorioAPI.authenticate({
username: config.username,
token: config.token,
require_ownership: false
require_ownership: false,
}).then(() => {
factorioAPI.searchMods(term.split("/")[term.split("/").length-1]).then(body => {
console.log("Im gonna download: "+body[0].name + " in version: " + body[0].latest_release.version);
@@ -202,7 +202,7 @@ async function addMod(config, term, instance) {
factorioAPI.authenticate({
username: config.username,
token: config.token,
require_ownership: false
require_ownership: false,
}).then(() => {
factorioAPI.searchMods(term).then(body => {
console.log(body);