Lint match_collector
Some checks failed
pipeline / lint-and-format (push) Failing after 4m38s
pipeline / build-and-push-images (push) Has been skipped

This commit is contained in:
2026-01-21 23:53:55 +01:00
parent 3d79d9e495
commit 067dcb67ba
2 changed files with 12 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
function sameArrays(array1: Array<any>, array2: Array<any>) {
function sameArrays(array1: Array<number>, array2: Array<number>) {
if (array1.length != array2.length) return false
for (const e of array1) {
if (!array2.includes(e)) return false
@@ -71,7 +71,8 @@ type ChampionData = {
lanes: Array<LaneData>
}
function handleParticipantRunes(participant, runes: Array<Rune>) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function handleParticipantRunes(participant: any, runes: Array<Rune>) {
const primaryStyle = participant.perks.styles[0].style
const secondaryStyle = participant.perks.styles[1].style
const selections: Array<number> = []
@@ -101,7 +102,13 @@ function handleParticipantRunes(participant, runes: Array<Rune>) {
if (addRunes) runes.push(gameRunes)
}
function handleMatchItems(timeline, participant: any, participantIndex: number, builds: Builds) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function handleMatchItems(
timeline: any,
participant: any,
participantIndex: number,
builds: Builds
) {
const items: Array<number> = []
for (const frame of timeline.info.frames) {
for (const event of frame.events) {
@@ -196,6 +203,7 @@ function handleMatchItems(timeline, participant: any, participantIndex: number,
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function handleMatch(match: any, champions: Map<number, ChampionData>) {
let participantIndex = 0
for (const participant of match.info.participants) {