"require-jsdoc": "off",
"require-unicode-regexp": "error",
"rest-spread-spacing": "error",
- "semi": "off",
+ "semi": [
+ "error",
+ "always"
+ ],
"semi-spacing": [
"error",
{
responseAndIsES[1]
? ":\n\n"
: "2[]"
- )
+ );
}, KEEP_ALIVE);
}
for (var player in this.racks) {
if (Object.prototype.hasOwnProperty.call(this.racks, player)) {
player = player.slice(1); // '#'
- players.push(
- {
- player: player,
- score: this.getPlayerScore(player),
- rackCount: countTiles(this.getPlayerRack(player))
- }
- );
+ players.push({
+ player: player,
+ score: this.getPlayerScore(player),
+ rackCount: countTiles(this.getPlayerRack(player))
+ });
}
}
- this.pendingEvents.push(
- {
- players: players,
- date: dateNow
- }
- );
+ this.pendingEvents.push({
+ players: players,
+ date: dateNow
+ });
};
Game.prototype.addListeningPlayer = function (playerName, responseAndIsES) {
response.write(
JSON.stringify({
- "error":0,
+ "error": 0,
"gameNumber": gameNumber,
"playerName": playerName,
"rack": game.getPlayerRack(playerName),
},
row.lastChild.textContent
);
- }
+ };
}
)(row);
while (participants.rows[1]) {
participants.removeChild(participants.rows[1]);
}
- sendCmds([{"cmd":"hello"}])
+ sendCmds([{"cmd":"hello"}]);
break;
case "moveLetter":
setTimeout(sendCmds.bind(null, []), POLLING_DELAY);
} else {
retriedImmediately = true;
- sendCmds()
+ sendCmds();
}
}
[{cmd: "resetGame"}]
);
}
- )
+ );
}
function clearRack() {