mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -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
|
|
@ -44,8 +44,8 @@ export class Card {
|
|||
printings: string[];
|
||||
rarity: string;
|
||||
rulings: {
|
||||
date: string;
|
||||
text: string;
|
||||
date: string;
|
||||
text: string;
|
||||
}[];
|
||||
side: string;
|
||||
setCode: string;
|
||||
|
|
@ -82,8 +82,8 @@ export class Token {
|
|||
type: { value: string; };
|
||||
};
|
||||
};
|
||||
related: { value: string; }[];
|
||||
'reverse-related': { value: string; }[];
|
||||
related: { value: string; }[];
|
||||
'reverse-related': { value: string; }[];
|
||||
set: {
|
||||
value: string;
|
||||
picURL: string;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
export enum FormKey {
|
||||
ADD_TO_BUDDIES = "ADD_TO_BUDDIES",
|
||||
ADD_TO_IGNORE = "ADD_TO_IGNORE",
|
||||
CARD_IMPORT = "CARD_IMPORT",
|
||||
CONNECT = "CONNECT",
|
||||
LOGIN = "LOGIN",
|
||||
REGISTER = "REGISTER",
|
||||
SEARCH_LOGS = "SEARCH_LOGS",
|
||||
ADD_TO_BUDDIES = 'ADD_TO_BUDDIES',
|
||||
ADD_TO_IGNORE = 'ADD_TO_IGNORE',
|
||||
CARD_IMPORT = 'CARD_IMPORT',
|
||||
CONNECT = 'CONNECT',
|
||||
LOGIN = 'LOGIN',
|
||||
REGISTER = 'REGISTER',
|
||||
SEARCH_LOGS = 'SEARCH_LOGS',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,5 @@ export interface Game {
|
|||
}
|
||||
|
||||
export enum GameSortField {
|
||||
START_TIME = "startTime"
|
||||
START_TIME = 'startTime'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
export * from "./cards";
|
||||
export * from "./constants";
|
||||
export * from "./game";
|
||||
export * from "./room";
|
||||
export * from "./server";
|
||||
export * from "./sort";
|
||||
export * from "./user";
|
||||
export * from "./routes";
|
||||
export * from "./sort";
|
||||
export * from "./forms";
|
||||
export * from "./message";
|
||||
export * from './cards';
|
||||
export * from './constants';
|
||||
export * from './game';
|
||||
export * from './room';
|
||||
export * from './server';
|
||||
export * from './sort';
|
||||
export * from './user';
|
||||
export * from './routes';
|
||||
export * from './sort';
|
||||
export * from './forms';
|
||||
export * from './message';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { User } from "./user";
|
||||
import { User } from './user';
|
||||
|
||||
export interface Room {
|
||||
autoJoin: boolean
|
||||
|
|
@ -19,5 +19,5 @@ export interface Room {
|
|||
export interface GametypeMap { [index: number]: string }
|
||||
|
||||
export enum RoomAccessLevel {
|
||||
"none"
|
||||
'none'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export enum StatusEnum {
|
|||
CONNECTED,
|
||||
LOGGING_IN,
|
||||
LOGGED_IN,
|
||||
DISCONNECTING = 99
|
||||
DISCONNECTING = 99
|
||||
}
|
||||
|
||||
export class Host {
|
||||
|
|
@ -68,7 +68,7 @@ export enum KnownHost {
|
|||
|
||||
export const KnownHosts = {
|
||||
[KnownHost.ROOSTER]: { port: 4748, host: 'server.cockatrice.us', },
|
||||
[KnownHost.TETRARCH]: { port: 443, host: 'mtg.tetrarch.co/servatrice'},
|
||||
[KnownHost.TETRARCH]: { port: 443, host: 'mtg.tetrarch.co/servatrice' },
|
||||
}
|
||||
|
||||
export interface Log {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
export enum SortDirection {
|
||||
ASC = "ASC",
|
||||
DESC = "DESC"
|
||||
ASC = 'ASC',
|
||||
DESC = 'DESC'
|
||||
}
|
||||
|
||||
export interface SortBy {
|
||||
|
|
|
|||
|
|
@ -10,16 +10,16 @@ export interface User {
|
|||
}
|
||||
|
||||
export enum UserAccessLevel {
|
||||
"NONE"
|
||||
'NONE'
|
||||
}
|
||||
|
||||
export enum UserPrivLevel {
|
||||
"unknown 1",
|
||||
"unknown 2",
|
||||
"unknown 3",
|
||||
"unknown 4"
|
||||
'unknown 1',
|
||||
'unknown 2',
|
||||
'unknown 3',
|
||||
'unknown 4'
|
||||
}
|
||||
|
||||
export enum UserSortField {
|
||||
NAME = "name"
|
||||
NAME = 'name'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue