mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Add ESLint & Run it against the system (#4470)
This commit is contained in:
parent
43eee6b32e
commit
f789e02096
106 changed files with 1235 additions and 20242 deletions
|
|
@ -20,11 +20,11 @@ export default class NormalizeService {
|
|||
static normalizeGameObject(game: Game, gametypeMap: GametypeMap): void {
|
||||
const { gameTypes, description } = game;
|
||||
const hasType = gameTypes && gameTypes.length;
|
||||
game.gameType = hasType ? gametypeMap[gameTypes[0]] : "";
|
||||
game.gameType = hasType ? gametypeMap[gameTypes[0]] : '';
|
||||
|
||||
game.description = description || "";
|
||||
game.description = description || '';
|
||||
}
|
||||
|
||||
|
||||
// Flatten logs[] into object mapped by targetType (room, game, chat)
|
||||
static normalizeLogs(logs: Log[]): LogGroups {
|
||||
return logs.reduce((obj, log) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue