This commit is contained in:
Manav Rathi
2025-02-25 16:25:06 +05:30
parent 9fc5483eb8
commit cc2be30f53
2 changed files with 3 additions and 4 deletions

View File

@@ -51,10 +51,10 @@ export const useSecondFactorChoiceIfNeeded = () => {
// ID will be in a V2 attribute during a transient migration period.
//
// Note the use of || instead of ?? since _twoFactorSessionIDV1 will
// be an empty string, not undefined, if it is unset. We might need
// to add a `xxx-eslint-disable
// @typescript-eslint/prefer-nullish-coalescing` here too later.
// be an empty string, not undefined, if it is unset. This is
// intentional, so disable the eslint rule too.
const _twoFactorSessionID =
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
_twoFactorSessionIDV1 || _twoFactorSessionIDV2;
let passkeySessionID: string | undefined;

View File

@@ -8,7 +8,6 @@ export default [
* "This rule requires the `strictNullChecks` compiler option to be
* turned on to function correctly"
*/
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-explicit-any": "off",