mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -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
|
|
@ -1,5 +1,5 @@
|
|||
import * as _ from "lodash";
|
||||
import { RoomsState } from "./rooms.interfaces";
|
||||
import * as _ from 'lodash';
|
||||
import { RoomsState } from './rooms.interfaces';
|
||||
|
||||
interface State {
|
||||
rooms: RoomsState
|
||||
|
|
@ -8,7 +8,7 @@ interface State {
|
|||
export const Selectors = {
|
||||
getRooms: ({ rooms }: State) => rooms.rooms,
|
||||
getRoom: ({ rooms }: State, id: number) =>
|
||||
_.find(rooms.rooms, ({roomId}) => roomId === id),
|
||||
_.find(rooms.rooms, ({ roomId }) => roomId === id),
|
||||
getJoined: ({ rooms }: State) => rooms.joined,
|
||||
getMessages: ({ rooms }: State) => rooms.messages,
|
||||
getSortGamesBy: ({ rooms: { sortGamesBy } }: State) => sortGamesBy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue