diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-21 20:20:45 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-22 00:23:02 +0200 |
commit | c03e68041e0f444e18a895058afbdf0d68759517 (patch) | |
tree | 6e31f9726d36e746f43c7856cebff8c861577e31 /frontend/src/schemas/games.js | |
parent | Clean name in websocket.js (diff) | |
download | seven-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.js | 10 |
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]; |