From 403b61486f1e75245bc9cf7ea6c10480192b35e9 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Tue, 11 Jan 2022 23:14:19 +0200 Subject: [PATCH] Fix lint --- app/services/bracket.test.ts | 1 + app/utils/hooks.ts | 4 +- package-lock.json | 163 ++++++++++++++++++----------------- package.json | 4 +- server/events.ts | 2 +- 5 files changed, 88 insertions(+), 86 deletions(-) diff --git a/app/services/bracket.test.ts b/app/services/bracket.test.ts index 94b9d94f4..19439d315 100644 --- a/app/services/bracket.test.ts +++ b/app/services/bracket.test.ts @@ -7,6 +7,7 @@ const LoserTeamSourceInfo = suite("addLoserTeamSourceInfo()"); const mockBracket = `{"winners":[{"id":"78cd79cf-fe04-4e6d-8f1a-dc14bab4af9c","name":"Winners' Round 1","stages":[{"position":1,"stage":{"id":3987,"name":"Arowana Mall","mode":"SZ"}},{"position":2,"stage":{"id":3975,"name":"MakoMart","mode":"CB"}},{"position":3,"stage":{"id":3928,"name":"Humpback Pump Track","mode":"TC"}}],"matches":[{"number":0,"id":"30654e5d-a220-4264-bcaf-0d162b1ebd30","winnerDestinationMatchId":"149d49e2-da1a-469c-94b2-b070efe59def","loserDestinationMatchId":"d4a96a16-b485-4c34-a751-6c5c6bae664c","participants":["Kraken Paradise",null]},{"number":1,"id":"8cdd804e-8010-431b-81de-81f278444aef","winnerDestinationMatchId":"149d49e2-da1a-469c-94b2-b070efe59def","loserDestinationMatchId":"d4a96a16-b485-4c34-a751-6c5c6bae664c","score":[1,2],"participants":["Kougeki","Last Minute"]},{"number":2,"id":"731c3db0-f903-4b91-946f-23d6f66e6af9","winnerDestinationMatchId":"a8b3e7b4-23f4-43db-ae5a-17b42bc6d64c","loserDestinationMatchId":"8ed564bc-8a0e-450d-8f1c-1d3f544a183f","score":[0,0],"participants":["Starburst","Arctic Moon"]},{"number":3,"id":"07aa5c6b-3b8a-417a-b526-1b4768cc34dd","winnerDestinationMatchId":"a8b3e7b4-23f4-43db-ae5a-17b42bc6d64c","loserDestinationMatchId":"8ed564bc-8a0e-450d-8f1c-1d3f544a183f","score":[0,0],"participants":["🛏️","sink gang"]},{"number":4,"id":"bef1721f-3dee-47ac-8fdd-f42025b10b2b","winnerDestinationMatchId":"87ee2463-d746-4e71-8b84-1bf9f83e0456","loserDestinationMatchId":"fa446012-413e-4511-84b4-ca20a185728f","score":[0,0],"participants":["Team Blue","NIS"]},{"number":5,"id":"04a440a4-ac0c-4912-bcbd-4a0907d20a6d","winnerDestinationMatchId":"87ee2463-d746-4e71-8b84-1bf9f83e0456","loserDestinationMatchId":"fa446012-413e-4511-84b4-ca20a185728f","score":[0,0],"participants":["Jackpot","Kelp Domers"]},{"number":6,"id":"0b88cf09-9211-416b-9f67-d4f53b5ee69d","winnerDestinationMatchId":"a5d04ed9-2094-448a-a93c-555c71e1e966","loserDestinationMatchId":"800899bc-524a-477a-b822-bec159cbf1c0","score":[0,0],"participants":["Crème Fresh","Squidding Good"]},{"number":7,"id":"82a1e13c-9126-450a-97ad-5a9c375b9615","winnerDestinationMatchId":"a5d04ed9-2094-448a-a93c-555c71e1e966","loserDestinationMatchId":"800899bc-524a-477a-b822-bec159cbf1c0","score":[0,0],"participants":["Team Paradise","Woomy Zoomy Boomy"]}]},{"id":"d4d2a025-dd81-4171-8763-31e9c81fe1f1","name":"Winners' Round 2","stages":[{"position":1,"stage":{"id":3934,"name":"Inkblot Art Academy","mode":"RM"}},{"position":2,"stage":{"id":3993,"name":"Goby Arena","mode":"TC"}},{"position":3,"stage":{"id":4002,"name":"Camp Triggerfish","mode":"SZ"}}],"matches":[{"number":8,"id":"149d49e2-da1a-469c-94b2-b070efe59def","winnerDestinationMatchId":"77a922ae-a2b6-46c9-8e63-ec74ff4bf8ce","loserDestinationMatchId":"4cd038cd-c49b-4abe-ac86-2b644ce09a82","score":[0,0],"participants":["Kraken Paradise","Last Minute"]},{"number":9,"id":"a8b3e7b4-23f4-43db-ae5a-17b42bc6d64c","winnerDestinationMatchId":"77a922ae-a2b6-46c9-8e63-ec74ff4bf8ce","loserDestinationMatchId":"31e8c789-161b-407a-9727-f2cd22655d93"},{"number":10,"id":"87ee2463-d746-4e71-8b84-1bf9f83e0456","winnerDestinationMatchId":"0b09af0a-2b18-438f-be2d-cd544388d9d8","loserDestinationMatchId":"906672b3-630b-4737-af25-df8a9ce0724b"},{"number":11,"id":"a5d04ed9-2094-448a-a93c-555c71e1e966","winnerDestinationMatchId":"0b09af0a-2b18-438f-be2d-cd544388d9d8","loserDestinationMatchId":"1e0f6fa4-d3a4-45c6-a15c-205715dc361d"}]},{"id":"50e57dfe-9a89-4853-a5d7-b600c7dcca4f","name":"Winners' Semifinals","stages":[{"position":1,"stage":{"id":3957,"name":"Kelp Dome","mode":"SZ"}},{"position":2,"stage":{"id":3944,"name":"Moray Towers","mode":"RM"}},{"position":3,"stage":{"id":4017,"name":"Ancho-V Games","mode":"SZ"}},{"position":4,"stage":{"id":3920,"name":"Musselforge Fitness","mode":"CB"}},{"position":5,"stage":{"id":3968,"name":"Blackbelly Skatepark","mode":"TC"}}],"matches":[{"number":12,"id":"77a922ae-a2b6-46c9-8e63-ec74ff4bf8ce","winnerDestinationMatchId":"1c8b0364-064a-4eb5-9f4b-e30de56926dc","loserDestinationMatchId":"347de70e-cb77-449b-9a04-baf84a7ac2cf"},{"number":13,"id":"0b09af0a-2b18-438f-be2d-cd544388d9d8","winnerDestinationMatchId":"1c8b0364-064a-4eb5-9f4b-e30de56926dc","loserDestinationMatchId":"743018d7-35c5-4bc2-aecb-d65af4fb4c1e"}]},{"id":"a5ee92ec-8d6b-4997-ada6-5c85e4f70559","name":"Winners' Finals","stages":[{"position":1,"stage":{"id":3954,"name":"Manta Maria","mode":"RM"}},{"position":2,"stage":{"id":3987,"name":"Arowana Mall","mode":"SZ"}},{"position":3,"stage":{"id":4000,"name":"Piranha Pit","mode":"CB"}},{"position":4,"stage":{"id":3992,"name":"Goby Arena","mode":"SZ"}},{"position":5,"stage":{"id":3928,"name":"Humpback Pump Track","mode":"TC"}}],"matches":[{"number":14,"id":"1c8b0364-064a-4eb5-9f4b-e30de56926dc","winnerDestinationMatchId":"facfdc52-7488-49ad-93e5-d7bc253d3de9","loserDestinationMatchId":"4d642c31-8b71-4cd4-b1f6-5552059bad19"}]},{"id":"f5ff0920-9aa0-4ee5-a2c7-f338eb8921ac","name":"Grand Finals","stages":[{"position":1,"stage":{"id":3934,"name":"Inkblot Art Academy","mode":"RM"}},{"position":2,"stage":{"id":4017,"name":"Ancho-V Games","mode":"SZ"}},{"position":3,"stage":{"id":3920,"name":"Musselforge Fitness","mode":"CB"}},{"position":4,"stage":{"id":3967,"name":"Blackbelly Skatepark","mode":"SZ"}},{"position":5,"stage":{"id":4003,"name":"Camp Triggerfish","mode":"TC"}},{"position":6,"stage":{"id":3974,"name":"MakoMart","mode":"RM"}},{"position":7,"stage":{"id":3957,"name":"Kelp Dome","mode":"SZ"}}],"matches":[{"number":28,"id":"facfdc52-7488-49ad-93e5-d7bc253d3de9","winnerDestinationMatchId":"b2fcbb94-a805-4a9e-af87-8a653439cc39","loserDestinationMatchId":"b2fcbb94-a805-4a9e-af87-8a653439cc39"}]},{"id":"00cf4c2e-4f08-491c-8d6b-bca0bd0b8f38","name":"Bracket Reset","stages":[{"position":1,"stage":{"id":3927,"name":"Humpback Pump Track","mode":"SZ"}},{"position":2,"stage":{"id":3945,"name":"Moray Towers","mode":"CB"}},{"position":3,"stage":{"id":3992,"name":"Goby Arena","mode":"SZ"}},{"position":4,"stage":{"id":3954,"name":"Manta Maria","mode":"RM"}},{"position":5,"stage":{"id":3988,"name":"Arowana Mall","mode":"TC"}},{"position":6,"stage":{"id":4002,"name":"Camp Triggerfish","mode":"SZ"}},{"position":7,"stage":{"id":4015,"name":"New Albacore Hotel","mode":"CB"}}],"matches":[{"number":29,"id":"b2fcbb94-a805-4a9e-af87-8a653439cc39","winnerDestinationMatchId":null,"loserDestinationMatchId":null}]}],"losers":[{"id":"2ab8f134-60af-44b8-ac22-84a535512f6c","name":"Losers' Round 1","stages":[{"position":1,"stage":{"id":3957,"name":"Kelp Dome","mode":"SZ"}},{"position":2,"stage":{"id":3968,"name":"Blackbelly Skatepark","mode":"TC"}},{"position":3,"stage":{"id":3955,"name":"Manta Maria","mode":"CB"}}],"matches":[{"number":0,"id":"d4a96a16-b485-4c34-a751-6c5c6bae664c","winnerDestinationMatchId":"4cd038cd-c49b-4abe-ac86-2b644ce09a82","loserDestinationMatchId":null,"participants":[null,"Kougeki"]},{"number":15,"id":"8ed564bc-8a0e-450d-8f1c-1d3f544a183f","winnerDestinationMatchId":"31e8c789-161b-407a-9727-f2cd22655d93","loserDestinationMatchId":null},{"number":16,"id":"fa446012-413e-4511-84b4-ca20a185728f","winnerDestinationMatchId":"906672b3-630b-4737-af25-df8a9ce0724b","loserDestinationMatchId":null},{"number":17,"id":"800899bc-524a-477a-b822-bec159cbf1c0","winnerDestinationMatchId":"1e0f6fa4-d3a4-45c6-a15c-205715dc361d","loserDestinationMatchId":null}]},{"id":"339ee68e-ff89-45b8-97c3-5fd1a8207c12","name":"Losers' Round 2","stages":[{"position":1,"stage":{"id":3934,"name":"Inkblot Art Academy","mode":"RM"}},{"position":2,"stage":{"id":4017,"name":"Ancho-V Games","mode":"SZ"}},{"position":3,"stage":{"id":3928,"name":"Humpback Pump Track","mode":"TC"}}],"matches":[{"number":18,"id":"4cd038cd-c49b-4abe-ac86-2b644ce09a82","winnerDestinationMatchId":"0890c87b-7d1a-4d67-81a9-713b0ae341e0","loserDestinationMatchId":null,"participants":[null,"Kougeki"]},{"number":19,"id":"31e8c789-161b-407a-9727-f2cd22655d93","winnerDestinationMatchId":"0890c87b-7d1a-4d67-81a9-713b0ae341e0","loserDestinationMatchId":null},{"number":20,"id":"906672b3-630b-4737-af25-df8a9ce0724b","winnerDestinationMatchId":"37ef09be-a684-4d35-924f-1660fc2259d5","loserDestinationMatchId":null},{"number":21,"id":"1e0f6fa4-d3a4-45c6-a15c-205715dc361d","winnerDestinationMatchId":"37ef09be-a684-4d35-924f-1660fc2259d5","loserDestinationMatchId":null}]},{"id":"4843b92a-1a4c-4450-8877-8bf3111f4a3f","name":"Losers' Round 3","stages":[{"position":1,"stage":{"id":4002,"name":"Camp Triggerfish","mode":"SZ"}},{"position":2,"stage":{"id":3975,"name":"MakoMart","mode":"CB"}},{"position":3,"stage":{"id":3944,"name":"Moray Towers","mode":"RM"}}],"matches":[{"number":22,"id":"0890c87b-7d1a-4d67-81a9-713b0ae341e0","winnerDestinationMatchId":"347de70e-cb77-449b-9a04-baf84a7ac2cf","loserDestinationMatchId":null},{"number":23,"id":"37ef09be-a684-4d35-924f-1660fc2259d5","winnerDestinationMatchId":"743018d7-35c5-4bc2-aecb-d65af4fb4c1e","loserDestinationMatchId":null}]},{"id":"44aba3bf-f880-4a53-a8b7-e0977a8abd86","name":"Losers' Round 4","stages":[{"position":1,"stage":{"id":3919,"name":"Musselforge Fitness","mode":"RM"}},{"position":2,"stage":{"id":3957,"name":"Kelp Dome","mode":"SZ"}},{"position":3,"stage":{"id":3988,"name":"Arowana Mall","mode":"TC"}}],"matches":[{"number":24,"id":"347de70e-cb77-449b-9a04-baf84a7ac2cf","winnerDestinationMatchId":"f32d2a0f-0e3e-450c-abeb-1194f7e4fded","loserDestinationMatchId":null},{"number":25,"id":"743018d7-35c5-4bc2-aecb-d65af4fb4c1e","winnerDestinationMatchId":"f32d2a0f-0e3e-450c-abeb-1194f7e4fded","loserDestinationMatchId":null}]},{"id":"8559bda2-668f-47f5-a5fa-c85cdbd51ad1","name":"Losers' Round 5","stages":[{"position":1,"stage":{"id":4015,"name":"New Albacore Hotel","mode":"CB"}},{"position":2,"stage":{"id":3954,"name":"Manta Maria","mode":"RM"}},{"position":3,"stage":{"id":4017,"name":"Ancho-V Games","mode":"SZ"}}],"matches":[{"number":26,"id":"f32d2a0f-0e3e-450c-abeb-1194f7e4fded","winnerDestinationMatchId":"4d642c31-8b71-4cd4-b1f6-5552059bad19","loserDestinationMatchId":null}]},{"id":"9cf611b9-bdc8-468c-b29c-fb0e29d94073","name":"Losers' Finals","stages":[{"position":1,"stage":{"id":3967,"name":"Blackbelly Skatepark","mode":"SZ"}},{"position":2,"stage":{"id":4000,"name":"Piranha Pit","mode":"CB"}},{"position":3,"stage":{"id":3992,"name":"Goby Arena","mode":"SZ"}},{"position":4,"stage":{"id":3988,"name":"Arowana Mall","mode":"TC"}},{"position":5,"stage":{"id":3934,"name":"Inkblot Art Academy","mode":"RM"}}],"matches":[{"number":27,"id":"4d642c31-8b71-4cd4-b1f6-5552059bad19","winnerDestinationMatchId":"facfdc52-7488-49ad-93e5-d7bc253d3de9","loserDestinationMatchId":null}]}]}`; LoserTeamSourceInfo("Adds loser team source info", () => { + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument const withLoserSourceInfo = addLoserTeamSourceInfo(JSON.parse(mockBracket)); let expectedNumbers = new Array(14).fill(null).map((_, i) => i + 1); diff --git a/app/utils/hooks.ts b/app/utils/hooks.ts index f9f3b2e60..cfd0d96e6 100644 --- a/app/utils/hooks.ts +++ b/app/utils/hooks.ts @@ -13,8 +13,8 @@ export const useUser = () => { export const useBaseURL = () => { const [root] = useMatches(); - const parsed = z.object({ baseURL: z.string() }).nullish().parse(root.data); - return parsed?.baseURL; + const parsed = z.object({ baseURL: z.string() }).parse(root.data); + return parsed.baseURL; }; // TODO: fix causes memory leak diff --git a/package-lock.json b/package-lock.json index e9d99114d..b732a20b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,8 +45,8 @@ "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "@types/uuid": "^8.3.4", - "@typescript-eslint/eslint-plugin": "^5.9.0", - "@typescript-eslint/parser": "^5.9.0", + "@typescript-eslint/eslint-plugin": "^5.9.1", + "@typescript-eslint/parser": "^5.9.1", "concurrently": "^7.0.0", "cypress": "^9.2.0", "eslint": "^8.6.0", @@ -64,7 +64,8 @@ "uvu": "^0.5.3" }, "engines": { - "node": ">=14" + "node": ">=16", + "npm": ">=8" } }, "node_modules/@babel/code-frame": { @@ -1026,14 +1027,14 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.9.0.tgz", - "integrity": "sha512-qT4lr2jysDQBQOPsCCvpPUZHjbABoTJW8V9ZzIYKHMfppJtpdtzszDYsldwhFxlhvrp7aCHeXD1Lb9M1zhwWwQ==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.9.1.tgz", + "integrity": "sha512-Xv9tkFlyD4MQGpJgTo6wqDqGvHIRmRgah/2Sjz1PUnJTawjHWIwBivUE9x0QtU2WVii9baYgavo/bHjrZJkqTw==", "dev": true, "dependencies": { - "@typescript-eslint/experimental-utils": "5.9.0", - "@typescript-eslint/scope-manager": "5.9.0", - "@typescript-eslint/type-utils": "5.9.0", + "@typescript-eslint/experimental-utils": "5.9.1", + "@typescript-eslint/scope-manager": "5.9.1", + "@typescript-eslint/type-utils": "5.9.1", "debug": "^4.3.2", "functional-red-black-tree": "^1.0.1", "ignore": "^5.1.8", @@ -1082,15 +1083,15 @@ "dev": true }, "node_modules/@typescript-eslint/experimental-utils": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.9.0.tgz", - "integrity": "sha512-ZnLVjBrf26dn7ElyaSKa6uDhqwvAi4jBBmHK1VxuFGPRAxhdi18ubQYSGA7SRiFiES3q9JiBOBHEBStOFkwD2g==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.9.1.tgz", + "integrity": "sha512-cb1Njyss0mLL9kLXgS/eEY53SZQ9sT519wpX3i+U457l2UXRDuo87hgKfgRazmu9/tQb0x2sr3Y0yrU+Zz0y+w==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.9.0", - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/typescript-estree": "5.9.0", + "@typescript-eslint/scope-manager": "5.9.1", + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/typescript-estree": "5.9.1", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" }, @@ -1106,14 +1107,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.9.0.tgz", - "integrity": "sha512-/6pOPz8yAxEt4PLzgbFRDpZmHnXCeZgPDrh/1DaVKOjvn/UPMlWhbx/gA96xRi2JxY1kBl2AmwVbyROUqys5xQ==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.9.1.tgz", + "integrity": "sha512-PLYO0AmwD6s6n0ZQB5kqPgfvh73p0+VqopQQLuNfi7Lm0EpfKyDalchpVwkE+81k5HeiRrTV/9w1aNHzjD7C4g==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.9.0", - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/typescript-estree": "5.9.0", + "@typescript-eslint/scope-manager": "5.9.1", + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/typescript-estree": "5.9.1", "debug": "^4.3.2" }, "engines": { @@ -1156,13 +1157,13 @@ "dev": true }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.9.0.tgz", - "integrity": "sha512-DKtdIL49Qxk2a8icF6whRk7uThuVz4A6TCXfjdJSwOsf+9ree7vgQWcx0KOyCdk0i9ETX666p4aMhrRhxhUkyg==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.9.1.tgz", + "integrity": "sha512-8BwvWkho3B/UOtzRyW07ffJXPaLSUKFBjpq8aqsRvu6HdEuzCY57+ffT7QoV4QXJXWSU1+7g3wE4AlgImmQ9pQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/visitor-keys": "5.9.0" + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/visitor-keys": "5.9.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1173,12 +1174,12 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.9.0.tgz", - "integrity": "sha512-uVCb9dJXpBrK1071ri5aEW7ZHdDHAiqEjYznF3HSSvAJXyrkxGOw2Ejibz/q6BXdT8lea8CMI0CzKNFTNI6TEQ==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.9.1.tgz", + "integrity": "sha512-tRSpdBnPRssjlUh35rE9ug5HrUvaB9ntREy7gPXXKwmIx61TNN7+l5YKgi1hMKxo5NvqZCfYhA5FvyuJG6X6vg==", "dev": true, "dependencies": { - "@typescript-eslint/experimental-utils": "5.9.0", + "@typescript-eslint/experimental-utils": "5.9.1", "debug": "^4.3.2", "tsutils": "^3.21.0" }, @@ -1222,9 +1223,9 @@ "dev": true }, "node_modules/@typescript-eslint/types": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.9.0.tgz", - "integrity": "sha512-mWp6/b56Umo1rwyGCk8fPIzb9Migo8YOniBGPAQDNC6C52SeyNGN4gsVwQTAR+RS2L5xyajON4hOLwAGwPtUwg==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.9.1.tgz", + "integrity": "sha512-SsWegWudWpkZCwwYcKoDwuAjoZXnM1y2EbEerTHho19Hmm+bQ56QG4L4jrtCu0bI5STaRTvRTZmjprWlTw/5NQ==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -1235,13 +1236,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.9.0.tgz", - "integrity": "sha512-kxo3xL2mB7XmiVZcECbaDwYCt3qFXz99tBSuVJR4L/sR7CJ+UNAPrYILILktGj1ppfZ/jNt/cWYbziJUlHl1Pw==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.9.1.tgz", + "integrity": "sha512-gL1sP6A/KG0HwrahVXI9fZyeVTxEYV//6PmcOn1tD0rw8VhUWYeZeuWHwwhnewnvEMcHjhnJLOBhA9rK4vmb8A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/visitor-keys": "5.9.0", + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/visitor-keys": "5.9.1", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -1285,12 +1286,12 @@ "dev": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.9.0.tgz", - "integrity": "sha512-6zq0mb7LV0ThExKlecvpfepiB+XEtFv/bzx7/jKSgyXTFD7qjmSu1FoiS0x3OZaiS+UIXpH2vd9O89f02RCtgw==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.9.1.tgz", + "integrity": "sha512-Xh37pNz9e9ryW4TVdwiFzmr4hloty8cFj8GTWMXh3Z8swGwyQWeCcNgF0hm6t09iZd6eiZmIf4zHedQVP6TVtg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.9.0", + "@typescript-eslint/types": "5.9.1", "eslint-visitor-keys": "^3.0.0" }, "engines": { @@ -10962,14 +10963,14 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.9.0.tgz", - "integrity": "sha512-qT4lr2jysDQBQOPsCCvpPUZHjbABoTJW8V9ZzIYKHMfppJtpdtzszDYsldwhFxlhvrp7aCHeXD1Lb9M1zhwWwQ==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.9.1.tgz", + "integrity": "sha512-Xv9tkFlyD4MQGpJgTo6wqDqGvHIRmRgah/2Sjz1PUnJTawjHWIwBivUE9x0QtU2WVii9baYgavo/bHjrZJkqTw==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "5.9.0", - "@typescript-eslint/scope-manager": "5.9.0", - "@typescript-eslint/type-utils": "5.9.0", + "@typescript-eslint/experimental-utils": "5.9.1", + "@typescript-eslint/scope-manager": "5.9.1", + "@typescript-eslint/type-utils": "5.9.1", "debug": "^4.3.2", "functional-red-black-tree": "^1.0.1", "ignore": "^5.1.8", @@ -10996,28 +10997,28 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.9.0.tgz", - "integrity": "sha512-ZnLVjBrf26dn7ElyaSKa6uDhqwvAi4jBBmHK1VxuFGPRAxhdi18ubQYSGA7SRiFiES3q9JiBOBHEBStOFkwD2g==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-5.9.1.tgz", + "integrity": "sha512-cb1Njyss0mLL9kLXgS/eEY53SZQ9sT519wpX3i+U457l2UXRDuo87hgKfgRazmu9/tQb0x2sr3Y0yrU+Zz0y+w==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.9.0", - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/typescript-estree": "5.9.0", + "@typescript-eslint/scope-manager": "5.9.1", + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/typescript-estree": "5.9.1", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/parser": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.9.0.tgz", - "integrity": "sha512-/6pOPz8yAxEt4PLzgbFRDpZmHnXCeZgPDrh/1DaVKOjvn/UPMlWhbx/gA96xRi2JxY1kBl2AmwVbyROUqys5xQ==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.9.1.tgz", + "integrity": "sha512-PLYO0AmwD6s6n0ZQB5kqPgfvh73p0+VqopQQLuNfi7Lm0EpfKyDalchpVwkE+81k5HeiRrTV/9w1aNHzjD7C4g==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.9.0", - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/typescript-estree": "5.9.0", + "@typescript-eslint/scope-manager": "5.9.1", + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/typescript-estree": "5.9.1", "debug": "^4.3.2" }, "dependencies": { @@ -11039,22 +11040,22 @@ } }, "@typescript-eslint/scope-manager": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.9.0.tgz", - "integrity": "sha512-DKtdIL49Qxk2a8icF6whRk7uThuVz4A6TCXfjdJSwOsf+9ree7vgQWcx0KOyCdk0i9ETX666p4aMhrRhxhUkyg==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.9.1.tgz", + "integrity": "sha512-8BwvWkho3B/UOtzRyW07ffJXPaLSUKFBjpq8aqsRvu6HdEuzCY57+ffT7QoV4QXJXWSU1+7g3wE4AlgImmQ9pQ==", "dev": true, "requires": { - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/visitor-keys": "5.9.0" + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/visitor-keys": "5.9.1" } }, "@typescript-eslint/type-utils": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.9.0.tgz", - "integrity": "sha512-uVCb9dJXpBrK1071ri5aEW7ZHdDHAiqEjYznF3HSSvAJXyrkxGOw2Ejibz/q6BXdT8lea8CMI0CzKNFTNI6TEQ==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.9.1.tgz", + "integrity": "sha512-tRSpdBnPRssjlUh35rE9ug5HrUvaB9ntREy7gPXXKwmIx61TNN7+l5YKgi1hMKxo5NvqZCfYhA5FvyuJG6X6vg==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "5.9.0", + "@typescript-eslint/experimental-utils": "5.9.1", "debug": "^4.3.2", "tsutils": "^3.21.0" }, @@ -11077,19 +11078,19 @@ } }, "@typescript-eslint/types": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.9.0.tgz", - "integrity": "sha512-mWp6/b56Umo1rwyGCk8fPIzb9Migo8YOniBGPAQDNC6C52SeyNGN4gsVwQTAR+RS2L5xyajON4hOLwAGwPtUwg==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.9.1.tgz", + "integrity": "sha512-SsWegWudWpkZCwwYcKoDwuAjoZXnM1y2EbEerTHho19Hmm+bQ56QG4L4jrtCu0bI5STaRTvRTZmjprWlTw/5NQ==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.9.0.tgz", - "integrity": "sha512-kxo3xL2mB7XmiVZcECbaDwYCt3qFXz99tBSuVJR4L/sR7CJ+UNAPrYILILktGj1ppfZ/jNt/cWYbziJUlHl1Pw==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.9.1.tgz", + "integrity": "sha512-gL1sP6A/KG0HwrahVXI9fZyeVTxEYV//6PmcOn1tD0rw8VhUWYeZeuWHwwhnewnvEMcHjhnJLOBhA9rK4vmb8A==", "dev": true, "requires": { - "@typescript-eslint/types": "5.9.0", - "@typescript-eslint/visitor-keys": "5.9.0", + "@typescript-eslint/types": "5.9.1", + "@typescript-eslint/visitor-keys": "5.9.1", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -11115,12 +11116,12 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.9.0.tgz", - "integrity": "sha512-6zq0mb7LV0ThExKlecvpfepiB+XEtFv/bzx7/jKSgyXTFD7qjmSu1FoiS0x3OZaiS+UIXpH2vd9O89f02RCtgw==", + "version": "5.9.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.9.1.tgz", + "integrity": "sha512-Xh37pNz9e9ryW4TVdwiFzmr4hloty8cFj8GTWMXh3Z8swGwyQWeCcNgF0hm6t09iZd6eiZmIf4zHedQVP6TVtg==", "dev": true, "requires": { - "@typescript-eslint/types": "5.9.0", + "@typescript-eslint/types": "5.9.1", "eslint-visitor-keys": "^3.0.0" } }, diff --git a/package.json b/package.json index f7d35f81a..a2119e498 100644 --- a/package.json +++ b/package.json @@ -60,8 +60,8 @@ "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "@types/uuid": "^8.3.4", - "@typescript-eslint/eslint-plugin": "^5.9.0", - "@typescript-eslint/parser": "^5.9.0", + "@typescript-eslint/eslint-plugin": "^5.9.1", + "@typescript-eslint/parser": "^5.9.1", "concurrently": "^7.0.0", "cypress": "^9.2.0", "eslint": "^8.6.0", diff --git a/server/events.ts b/server/events.ts index 0b02dee45..e8a2d4c7f 100644 --- a/server/events.ts +++ b/server/events.ts @@ -16,7 +16,7 @@ export function setUpEvents(app: Express): void { res.flushHeaders(); let counter = 0; - let interValID = setInterval(() => { + const interValID = setInterval(() => { counter++; console.log("write", counter); res.write(`data: ${JSON.stringify({ num: counter })}\n\n`); // res.write() instead of res.send()