Issue Task New

#111599Compare enums against enum members in TypeScript

Benjamin Kott 11/25/26, 14:26 updated 11/25/26, 14:26

Description

Part of #111591.

Comparing an enum value against a plain string or number literal keeps compiling when the enum changes and then silently never matches. Resolve the findings of typescript-eslint/no-unsafe-enum-comparison@ by comparing against the enum members, then remove its "off" entry from Build/eslint.config.mjs.

Findings with typescript-eslint 8.58.1: 41, nearly all of them in EXT:backend.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[TASK] Compare enums against enum members in TypeScript Resolves: #111599 Releases: main