Skip to content

Onyx Bump 2.0.48: null -> undefined changes #269

Onyx Bump 2.0.48: null -> undefined changes

Onyx Bump 2.0.48: null -> undefined changes #269

Triggered via pull request June 6, 2024 15:21
Status Failure
Total duration 9m 17s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Run ESLint: src/languages/types.ts#L1
'OnyxEntry' is defined but never used
Run ESLint: src/libs/DistanceRequestUtils.ts#L45
Prefer using an optional chain expression instead, as it's more concise and easier to read
Run ESLint: src/libs/DistanceRequestUtils.ts#L49
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#L81
'any' overrides all other types in this union type
Run ESLint: src/libs/DistanceRequestUtils.ts#L86
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...`
Run ESLint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: nick-fields/retry@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.