Skip to content

Commit

Permalink
code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
arily committed Jan 8, 2024
1 parent 0adc83f commit 248a1f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
run: pnpm install

- name: type check ⚙️
run: pnpm run typecheck
run: pnpm typecheck

- name: Run linter 👀
run: pnpm run lint
run: pnpm lint

- name: Test build 👀
run: pnpm run build
run: pnpm build
1 change: 1 addition & 0 deletions .lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ return {
-- Define your formatters
formatters_by_ft = {
vue = { "eslint_d" },
typescript = { "typescript", "eslint_d" },
},
},
},
Expand Down
3 changes: 1 addition & 2 deletions src/server/backend/bancho.py/transforms/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function toUserClan(user: Pick<DatabaseUser & { clan: Pick<Clan, 'id' | '
export type DatabaseUserCompactFields = 'id' | 'name' | 'safeName' | 'country' | 'priv'
export function toUserCompact(user: Pick<DatabaseUser, DatabaseUserCompactFields>, { avatar }: {
avatar: {
domain?: string
domain: string
}
}): UserCompact<Id> {
return {
Expand All @@ -139,7 +139,6 @@ export function toUserCompact(user: Pick<DatabaseUser, DatabaseUserCompactFields
flag: user.country.toUpperCase() as CountryCode,
avatarSrc: avatar.domain && toUserAvatarSrc(
user,
// @ts-expect-error you are dumb
{ avatar }
),
roles: toRoles(user.priv),
Expand Down

0 comments on commit 248a1f9

Please sign in to comment.