Fixing prettier setup on messages

This commit is contained in:
David Négrier 2021-12-16 16:46:22 +01:00
parent 1ed10b0cdd
commit 36f5d42668
5 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,4 @@
{ {
"printWidth": 120, "printWidth": 120,
"tabWidth": 4, "tabWidth": 4
"plugins": ["prettier-plugin-svelte"]
} }

View File

@ -1,5 +1,5 @@
import * as tg from "generic-type-guard"; import * as tg from "generic-type-guard";
import { isCharacterTexture} from "./CharacterTexture"; import { isCharacterTexture } from "./CharacterTexture";
/* /*
* WARNING! The original file is in /messages/JsonMessages. * WARNING! The original file is in /messages/JsonMessages.

View File

@ -1,5 +1,5 @@
import * as tg from "generic-type-guard"; import * as tg from "generic-type-guard";
import { isCharacterTexture} from "./CharacterTexture"; import { isCharacterTexture } from "./CharacterTexture";
/* /*
* WARNING! The original file is in /messages/JsonMessages. * WARNING! The original file is in /messages/JsonMessages.
@ -15,7 +15,6 @@ export const isRegisterData = new tg.IsInterface()
userUuid: tg.isString, userUuid: tg.isString,
textures: tg.isArray(isCharacterTexture), textures: tg.isArray(isCharacterTexture),
authToken: tg.isString, authToken: tg.isString,
}) })
.withOptionalProperties({ .withOptionalProperties({
messages: tg.isArray(tg.isUnknown), messages: tg.isArray(tg.isUnknown),

View File

@ -6,7 +6,7 @@ import { AuthTokenData, jwtTokenManager } from "../Services/JWTTokenManager";
import { parse } from "query-string"; import { parse } from "query-string";
import { openIDClient } from "../Services/OpenIDClient"; import { openIDClient } from "../Services/OpenIDClient";
import { DISABLE_ANONYMOUS, FRONT_URL } from "../Enum/EnvironmentVariable"; import { DISABLE_ANONYMOUS, FRONT_URL } from "../Enum/EnvironmentVariable";
import { RegisterData } from "../../../messages/JsonMessages/RegisterData"; import { RegisterData } from "../Messages/JsonMessages/RegisterData";
export interface TokenInterface { export interface TokenInterface {
userUuid: string; userUuid: string;

View File

@ -11,7 +11,7 @@ import {
import { WebSocket } from "uWebSockets.js"; import { WebSocket } from "uWebSockets.js";
import { ClientDuplexStream } from "grpc"; import { ClientDuplexStream } from "grpc";
import { Zone } from "_Model/Zone"; import { Zone } from "_Model/Zone";
import { CharacterTexture} from "../../Messages/JsonMessages/CharacterTexture"; import { CharacterTexture } from "../../Messages/JsonMessages/CharacterTexture";
export type BackConnection = ClientDuplexStream<PusherToBackMessage, ServerToClientMessage>; export type BackConnection = ClientDuplexStream<PusherToBackMessage, ServerToClientMessage>;