Skip to content

Onyx Bump 2.0.48: null -> undefined changes #268

Onyx Bump 2.0.48: null -> undefined changes

Onyx Bump 2.0.48: null -> undefined changes #268

Triggered via pull request June 5, 2024 19:56
Status Failure
Total duration 6m 21s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Run ESLint: src/languages/types.ts#L1
'OnyxEntry' is defined but never used
Run ESLint: src/libs/DistanceRequestUtils.ts#L46
Prefer using an optional chain expression instead, as it's more concise and easier to read
Run ESLint: src/libs/DistanceRequestUtils.ts#L50
Unsafe argument of type `any` assigned to a parameter of type `OnyxEntry<{ id: string; name: string; role: ValueOf<{ readonly ADMIN: "admin"; readonly AUDITOR: "auditor"; readonly USER: "user"; }>; type: ValueOf<{ readonly FREE: "free"; readonly PERSONAL: "personal"; readonly CORPORATE: "corporate"; readonly TEAM: "team"; }>; ... 52 more ...; travelSettings?: WorkspaceTravelSet...`
Run ESLint: src/libs/DistanceRequestUtils.ts#L82
'any' overrides all other types in this union type
Run ESLint: src/libs/DistanceRequestUtils.ts#L87
Unsafe argument of type `any` assigned to a parameter of type `OnyxEntry<{ id: string; name: string; role: ValueOf<{ readonly ADMIN: "admin"; readonly AUDITOR: "auditor"; readonly USER: "user"; }>; type: ValueOf<{ readonly FREE: "free"; readonly PERSONAL: "personal"; readonly CORPORATE: "corporate"; readonly TEAM: "team"; }>; ... 52 more ...; travelSettings?: WorkspaceTravelSet...`
Run ESLint: src/libs/OptionsListUtils.ts#L503
Unsafe argument of type `any` assigned to a parameter of type `OnyxEntry<{ avatarUrl?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; readonly GROUP: "group"; ... 5 more ...; readonly SYSTEM: "system"; }> | undefined; ... 69 more ...; permissions?: ValueOf<...>[] | unde...`
Run ESLint: src/libs/OptionsListUtils.ts#L504
Unsafe argument of type `any` assigned to a parameter of type `OnyxEntry<{ avatarUrl?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; readonly GROUP: "group"; ... 5 more ...; readonly SYSTEM: "system"; }> | undefined; ... 69 more ...; permissions?: ValueOf<...>[] | unde...`
Run ESLint: src/libs/OptionsListUtils.ts#L509
Unsafe argument of type `any` assigned to a parameter of type `OnyxEntry<{ avatarUrl?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; readonly GROUP: "group"; ... 5 more ...; readonly SYSTEM: "system"; }> | undefined; ... 69 more ...; permissions?: ValueOf<...>[] | unde...`
Run ESLint: src/libs/OptionsListUtils.ts#L732
Unsafe argument of type `any` assigned to a parameter of type `OnyxEntry<{ avatarUrl?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; readonly GROUP: "group"; ... 5 more ...; readonly SYSTEM: "system"; }> | undefined; ... 69 more ...; permissions?: ValueOf<...>[] | unde...`
Run ESLint: src/libs/OptionsListUtils.ts#L733
Unsafe argument of type `any` assigned to a parameter of type `OnyxEntry<{ avatarUrl?: string | undefined; chatType?: ValueOf<{ readonly POLICY_ANNOUNCE: "policyAnnounce"; readonly POLICY_ADMINS: "policyAdmins"; readonly TRIP_ROOM: "tripRoom"; readonly GROUP: "group"; ... 5 more ...; readonly SYSTEM: "system"; }> | undefined; ... 69 more ...; permissions?: ValueOf<...>[] | unde...`