diff --git a/.eslintrc.js b/.eslintrc.js index 1c7ed3a0..fa7184d3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -92,7 +92,7 @@ module.exports = { "spaced-comment": [ "error", "always", - { markers: ["*", "@__NOINLINE__", "#region", "#endregion"] }, + { markers: ["*", "@__NOINLINE__"] }, ], }, reportUnusedDisableDirectives: true, diff --git a/components/menuData.ts b/components/menuData.ts index b0d870b4..1b980688 100644 --- a/components/menuData.ts +++ b/components/menuData.ts @@ -1300,7 +1300,6 @@ menuDataRouter.get( const cats = [] - // #region Main story missions const currentIdIndex = orderedMissions.indexOf(req.query.contractId) if ( @@ -1332,9 +1331,7 @@ menuDataRouter.get( cats.push(createMainOpportunityTile(req.query.contractId)) } - // #endregion - // #region PZ missions const pzIdIndex = orderedPZMissions.indexOf(req.query.contractId) if (pzIdIndex !== -1 && pzIdIndex !== orderedPZMissions.length - 1) { @@ -1351,9 +1348,6 @@ menuDataRouter.get( ), ) } - // #endregion - - // #region Atlantide if (req.query.contractId === "f1ba328f-e3dd-4ef8-bb26-0363499fdd95") { const nextMissionId = "0b616e62-af0c-495b-82e3-b778e82b5912" @@ -1369,9 +1363,7 @@ menuDataRouter.get( ), ) } - // #endregion - // #region Plugin missions const pluginData = controller.hooks.getNextCampaignMission.call( req.query.contractId, req.gameVersion, @@ -1396,7 +1388,6 @@ menuDataRouter.get( ) } } - // #endregion res.json({ template: getConfig("PlayNextTemplate", false), diff --git a/components/profileHandler.ts b/components/profileHandler.ts index 67741654..c424a369 100644 --- a/components/profileHandler.ts +++ b/components/profileHandler.ts @@ -626,7 +626,6 @@ profileRouter.post( jsonMiddleware(), async (req: RequestWithJwt, res) => { if (getFlag("loadoutSaving") === "PROFILES") { - // #region Save with loadout profiles let loadout = loadouts.getLoadoutFor(req.gameVersion) if (!loadout) { @@ -636,9 +635,7 @@ profileRouter.post( loadout.data[req.body.location] = req.body.loadout await loadouts.save() - // #endregion } else { - // #region Save with legacy (per-user) system const userdata = getUserData(req.jwt.unique_name, req.gameVersion) if (userdata.Extensions.defaultloadout === undefined) { @@ -649,7 +646,6 @@ profileRouter.post( req.body.loadout writeUserData(req.jwt.unique_name, req.gameVersion) - // #endregion } res.status(204).end() diff --git a/components/scoreHandler.ts b/components/scoreHandler.ts index ff2468af..5cbc919c 100644 --- a/components/scoreHandler.ts +++ b/components/scoreHandler.ts @@ -258,7 +258,6 @@ export function calculateScore( }) as ScoringHeadline, ) - // #region Time const timeHours = Math.floor(timeTotal / 3600) const timeMinutes = Math.floor((timeTotal - timeHours * 3600) / 60) const timeSeconds = Math.floor( @@ -313,7 +312,6 @@ export function calculateScore( scoreTotal: timebonus, }) as ScoringHeadline, ) - // #endregion for (const type of ["total", "subtotal"]) { scoringHeadlines.push( @@ -989,7 +987,6 @@ export async function missionEnd( await liveSplitManager.completeMission(timeTotal) } - // #region Leaderboards if ( getFlag("leaderboards") === true && req.gameVersion !== "scpc" && @@ -1061,7 +1058,6 @@ export async function missionEnd( ) } } - // #endregion res.json({ template: