chore: satisfy upgraded biome checks
CI / runtime-diagnostics (pull_request) Skipped
CI / check (pull_request) Successful in 58s
CI / release (pull_request) Skipped
CI / deploy (pull_request) Skipped

This commit is contained in:
Simo committed 2026-09-01 19:14:09 +02:00
1 parent c7891b60c3
commit b413e62085
30 files changed
+162 -74

No files matched your search

@@ -33,7 +33,11 @@ const expected = [
["content.media.ads", "/ase-next/content/media/ads", "media"],
["content.media.ad-create", "/ase-next/content/media/ads/new", "media"],
["content.media.ad-detail", "/ase-next/content/media/ads/:id", "media"],
["content.engagement.events", "/ase-next/content/engagement/events", "engagement"],
[
"content.engagement.events",
"/ase-next/content/engagement/events",
"engagement",
],
[
"content.engagement.event-create",
"/ase-next/content/engagement/events/create",
@@ -49,7 +53,11 @@ const expected = [
"/ase-next/content/engagement/events/:id",
"engagement",
],
["content.engagement.polls", "/ase-next/content/engagement/polls", "engagement"],
[
"content.engagement.polls",
"/ase-next/content/engagement/polls",
"engagement",
],
[
"content.engagement.poll-create",
"/ase-next/content/engagement/polls/create",
@@ -61,8 +69,16 @@ const expected = [
"engagement",
],
["content.help.questions", "/ase-next/content/help/questions", "help"],
["content.help.question-create", "/ase-next/content/help/questions/new", "help"],
["content.help.question-detail", "/ase-next/content/help/questions/:id", "help"],
[
"content.help.question-create",
"/ase-next/content/help/questions/new",
"help",
],
[
"content.help.question-detail",
"/ase-next/content/help/questions/:id",
"help",
],
["content.editorial.tags", "/ase-next/content/editorial/tags", "editorial"],
[
"content.engagement.prefixes",
@@ -74,7 +90,11 @@ const expected = [
"/ase-next/content/editorial/writeable-boxes",
"editorial",
],
["content.help.email-templates", "/ase-next/content/help/email-templates", "help"],
[
"content.help.email-templates",
"/ase-next/content/help/email-templates",
"help",
],
["content.brand.theme", "/ase-next/content/brand/theme", "brand"],
[
"content.brand.theme-builder",
@@ -92,7 +112,11 @@ const expected = [
"/ase-next/content/localization/client",
"localization",
],
["content.localization.cms", "/ase-next/content/localization/cms", "localization"],
[
"content.localization.cms",
"/ase-next/content/localization/cms",
"localization",
],
[
"content.localization.emulator",
"/ase-next/content/localization/emulator",
@@ -98,9 +98,11 @@ export const CONTENT_ROUTES = [
contentRoute("content.media.ad-detail", "/ase-next/content/media/ads/:id", [
PERMS.PAGES_VIEW,
]),
contentRoute("content.engagement.events", "/ase-next/content/engagement/events", [
PERMS.EVENTS_VIEW,
]),
contentRoute(
"content.engagement.events",
"/ase-next/content/engagement/events",
[PERMS.EVENTS_VIEW],
),
contentRoute(
"content.engagement.event-create",
"/ase-next/content/engagement/events/create",
@@ -116,9 +118,11 @@ export const CONTENT_ROUTES = [
"/ase-next/content/engagement/events/:id",
[PERMS.EVENTS_EDIT],
),
contentRoute("content.engagement.polls", "/ase-next/content/engagement/polls", [
PERMS.POLLS_VIEW,
]),
contentRoute(
"content.engagement.polls",
"/ase-next/content/engagement/polls",
[PERMS.POLLS_VIEW],
),
contentRoute(
"content.engagement.poll-create",
"/ase-next/content/engagement/polls/create",
@@ -171,17 +175,21 @@ export const CONTENT_ROUTES = [
contentRoute("content.brand.favicon", "/ase-next/content/brand/favicon", [
PERMS.SETTINGS_VIEW,
]),
contentRoute("content.localization.overview", "/ase-next/content/localization", [
PERMS.SETTINGS_VIEW,
]),
contentRoute(
"content.localization.overview",
"/ase-next/content/localization",
[PERMS.SETTINGS_VIEW],
),
contentRoute(
"content.localization.client",
"/ase-next/content/localization/client",
[PERMS.SETTINGS_VIEW],
),
contentRoute("content.localization.cms", "/ase-next/content/localization/cms", [
PERMS.SETTINGS_VIEW,
]),
contentRoute(
"content.localization.cms",
"/ase-next/content/localization/cms",
[PERMS.SETTINGS_VIEW],
),
contentRoute(
"content.localization.emulator",
"/ase-next/content/localization/emulator",
@@ -42,7 +42,11 @@ const expected = [
"/ase-next/economy/commerce/marketplace",
"commerce",
],
["economy.commerce.vouchers", "/ase-next/economy/commerce/vouchers", "commerce"],
[
"economy.commerce.vouchers",
"/ase-next/economy/commerce/vouchers",
"commerce",
],
[
"economy.commerce.subscriptions",
"/ase-next/economy/commerce/subscriptions",
@@ -92,9 +92,11 @@ export const ECONOMY_ROUTES = [
"/ase-next/economy/commerce/marketplace",
[PERMS.SHOP_VIEW],
),
economyRoute("economy.commerce.vouchers", "/ase-next/economy/commerce/vouchers", [
PERMS.SHOP_VIEW,
]),
economyRoute(
"economy.commerce.vouchers",
"/ase-next/economy/commerce/vouchers",
[PERMS.SHOP_VIEW],
),
economyRoute(
"economy.commerce.subscriptions",
"/ase-next/economy/commerce/subscriptions",
@@ -105,9 +107,11 @@ export const ECONOMY_ROUTES = [
"/ase-next/economy/history/transactions",
[PERMS.SHOP_VIEW],
),
economyRoute("economy.value.rare-values", "/ase-next/economy/value/rare-values", [
PERMS.SHOP_VIEW,
]),
economyRoute(
"economy.value.rare-values",
"/ase-next/economy/value/rare-values",
[PERMS.SHOP_VIEW],
),
economyRoute("economy.rewards.badges", "/ase-next/economy/rewards/badges", [
PERMS.CATALOG_VIEW,
]),
@@ -119,9 +123,11 @@ export const ECONOMY_ROUTES = [
economyRoute("economy.rewards.sounds", "/ase-next/economy/rewards/sounds", [
PERMS.CATALOG_VIEW,
]),
economyRoute("economy.rewards.calendar", "/ase-next/economy/rewards/calendar", [
PERMS.SHOP_VIEW,
]),
economyRoute(
"economy.rewards.calendar",
"/ase-next/economy/rewards/calendar",
[PERMS.SHOP_VIEW],
),
economyRoute(
"economy.rewards.calendar-detail",
"/ase-next/economy/rewards/calendar/:id",
@@ -93,7 +93,9 @@ describe("Hotel query adapters", () => {
const query = createHotelQuery({
load: async () => ({
kind: "rooms",
items: [{ id: "1", title: "Unsafe", href: "/ase-next/hotel/%2e%2e/system" }],
items: [
{ id: "1", title: "Unsafe", href: "/ase-next/hotel/%2e%2e/system" },
],
total: 1,
partialDependencies: ["imaginary"],
}),
@@ -128,7 +128,10 @@ export const HOTEL_STUDIO_ROUTES = [
studioRoute("hotel.studio.furni", "/ase-next/hotel/studio/furni"),
studioRoute("hotel.studio.maintenance", "/ase-next/hotel/studio/maintenance"),
studioRoute("hotel.studio.pets", "/ase-next/hotel/studio/pets"),
studioRoute("hotel.studio.repair-icons", "/ase-next/hotel/studio/repair-icons"),
studioRoute(
"hotel.studio.repair-icons",
"/ase-next/hotel/studio/repair-icons",
),
studioRoute("hotel.studio.sync", "/ase-next/hotel/studio/sync"),
studioRoute("hotel.studio.upload", "/ase-next/hotel/studio/upload"),
] as const satisfies readonly HousekeepingRouteDefinition[];
@@ -71,9 +71,9 @@ describe("People providers", () => {
expect(result.ok).toBe(true);
if (!result.ok) return;
expect(result.data).toHaveLength(25);
expect(result.data.every((item) => item.href.startsWith("/ase-next/"))).toBe(
true,
);
expect(
result.data.every((item) => item.href.startsWith("/ase-next/")),
).toBe(true);
expect(result.data.map((item) => item.id)).not.toContain("candidate-1");
});
@@ -106,7 +106,10 @@ describe("People providers", () => {
expect(search).toMatchObject({
ok: true,
data: [
{ id: "candidate-7", href: "/ase-next/people/users/7?tab=profile#security" },
{
id: "candidate-7",
href: "/ase-next/people/users/7?tab=profile#security",
},
{ id: "candidate-8", href: "/ase-next?view=queue#top" },
],
});
@@ -140,7 +143,10 @@ describe("People providers", () => {
ok: true,
data: {
items: [
{ itemId: "7", href: "/ase-next/people/users/7?tab=profile#security" },
{
itemId: "7",
href: "/ase-next/people/users/7?tab=profile#security",
},
{ itemId: "8", href: "/ase-next?view=queue#top" },
],
},
@@ -379,7 +379,9 @@ describe("People production authorization boundary", () => {
ok: true,
data: {
page: {
items: [{ id: "12", href: "/ase-next/people/support/help-tickets/12" }],
items: [
{ id: "12", href: "/ase-next/people/support/help-tickets/12" },
],
},
},
});
@@ -86,7 +86,11 @@ const expectedRoutes = [
"/ase-next/people/moderation/bans",
[PERMS.BANS_VIEW, PERMS.MOD_BANS_VIEW],
],
["people.moderation.ip", "/ase-next/people/moderation/ip", [PERMS.SETTINGS_VIEW]],
[
"people.moderation.ip",
"/ase-next/people/moderation/ip",
[PERMS.SETTINGS_VIEW],
],
[
"people.moderation.vpn",
"/ase-next/people/moderation/vpn",
@@ -75,9 +75,11 @@ export const PEOPLE_ROUTES = [
"/ase-next/people/community/guilds/:id",
[PERMS.USERS_VIEW],
),
peopleRoute("people.staff.applications", "/ase-next/people/staff/applications", [
PERMS.USERS_VIEW,
]),
peopleRoute(
"people.staff.applications",
"/ase-next/people/staff/applications",
[PERMS.USERS_VIEW],
),
peopleRoute("people.staff.teams", "/ase-next/people/staff/teams", [
PERMS.USERS_VIEW,
]),
@@ -94,10 +96,11 @@ export const PEOPLE_ROUTES = [
PERMS.MOD_USERS_VIEW,
PERMS.USERS_VIEW,
]),
peopleRoute("people.moderation.actions", "/ase-next/people/moderation/actions", [
PERMS.MODERATION_EDIT,
PERMS.MOD_ACTIONS,
]),
peopleRoute(
"people.moderation.actions",
"/ase-next/people/moderation/actions",
[PERMS.MODERATION_EDIT, PERMS.MOD_ACTIONS],
),
peopleRoute("people.moderation.cfh", "/ase-next/people/moderation/cfh", [
PERMS.MODERATION_VIEW,
PERMS.MOD_CFH_VIEW,