Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
megascatterbomb committed Mar 21, 2024
1 parent 61e95b2 commit cf086a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ function App() {
const { isMinimode } = useMinimode();
const [currentPage, setCurrentPage] = React.useState(PAGES.PLAYER_LIST);

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { closeModal, openModal, modalContent } = useModal();

const renderPage = () => {
Expand Down
24 changes: 12 additions & 12 deletions src/components/TF2/Player/playerutils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,17 @@ function getCheaterFriendsInLobby(
player: PlayerInfo,
cheatersInLobby: PlayerInfo[],
): PlayerInfo[] {
return cheatersInLobby.filter(
(c) => player.friends?.some((f) => f.steamID64 === c.steamID64),
return cheatersInLobby.filter((c) =>

Check failure on line 108 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `(c)·=>␍⏎···` with `␍⏎····(c)·=>`
player.friends?.some((f) => f.steamID64 === c.steamID64),
);
}

function hasCheaterFriendsInLobby(
player: PlayerInfo,
cheatersInLobby: PlayerInfo[],
): boolean {
return cheatersInLobby.some(
(c) => player.friends?.some((f) => f.steamID64 === c.steamID64),
return cheatersInLobby.some((c) =>

Check failure on line 117 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `(c)·=>␍⏎···` with `␍⏎····(c)·=>`
player.friends?.some((f) => f.steamID64 === c.steamID64),
);
}

Expand Down Expand Up @@ -158,14 +158,14 @@ function buildIconList(
player.gameInfo.state === 'Disconnected'
? './kiwi_gray.webp'
: player.gameInfo.team === 0
? './kiwi_unassigned.webp'
: player.gameInfo.team === 1
? './kiwi_spectator.webp'
: player.gameInfo.team === 2
? './kiwi_red.webp'
: player.gameInfo.team === 3
? './kiwi_blue.webp'
: './kiwi_white.webp';
? './kiwi_unassigned.webp'

Check failure on line 161 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
: player.gameInfo.team === 1

Check failure on line 162 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
? './kiwi_spectator.webp'

Check failure on line 163 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `··········` with `······`
: player.gameInfo.team === 2

Check failure on line 164 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `··········` with `······`
? './kiwi_red.webp'

Check failure on line 165 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `······`
: player.gameInfo.team === 3

Check failure on line 166 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Replace `············` with `······`
? './kiwi_blue.webp'

Check failure on line 167 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `········`
: './kiwi_white.webp';

Check failure on line 168 in src/components/TF2/Player/playerutils.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `········`

return [
hasAlias && (
Expand Down

0 comments on commit cf086a5

Please sign in to comment.