summaryrefslogtreecommitdiff
path: root/frontend/src/schemas/games.js
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-21 20:20:45 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-22 00:23:02 +0200
commitc03e68041e0f444e18a895058afbdf0d68759517 (patch)
tree6e31f9726d36e746f43c7856cebff8c861577e31 /frontend/src/schemas/games.js
parentClean name in websocket.js (diff)
downloadseven-wonders-c03e68041e0f444e18a895058afbdf0d68759517.tar.gz
seven-wonders-c03e68041e0f444e18a895058afbdf0d68759517.tar.bz2
seven-wonders-c03e68041e0f444e18a895058afbdf0d68759517.zip
Update prettier config and reformat
Here's the discussion summary: - single quote, because that's what I'm used to in the JS world - trailing comma, to avoid unnecessary git changes - print-width 120, because 120 still doesn't require to scroll horizontally, and vertical space is precious
Diffstat (limited to 'frontend/src/schemas/games.js')
-rw-r--r--frontend/src/schemas/games.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/schemas/games.js b/frontend/src/schemas/games.js
index 9c9681da..68d14fb4 100644
--- a/frontend/src/schemas/games.js
+++ b/frontend/src/schemas/games.js
@@ -1,15 +1,15 @@
-import { schema } from "normalizr";
+import { schema } from 'normalizr';
const player = new schema.Entity(
- "players",
+ 'players',
{},
{
- idAttribute: "username"
+ idAttribute: 'username',
}
);
-export const game = new schema.Entity("games", {
- players: [player]
+export const game = new schema.Entity('games', {
+ players: [player],
});
export const gameList = [game];
bgstack15