chore: disable rules in oxlint (#9154)

This commit is contained in:
Brooooooklyn
2024-12-13 10:49:35 +00:00
parent 2452ccd1e5
commit ea746e3d77
53 changed files with 621 additions and 269 deletions
@@ -1,8 +1,7 @@
import { type PasswordLimitsFragment } from '@affine/graphql';
import { useI18n } from '@affine/i18n';
import { type Options, passwordStrength } from 'check-password-strength';
import { type FC, useEffect, useMemo } from 'react';
import { useCallback, useState } from 'react';
import { type FC, useEffect, useMemo, useCallback, useState } from 'react';
import { z, type ZodCustomIssue, ZodIssueCode } from 'zod';
import type { InputProps } from '../../../ui/input';
@@ -97,7 +97,7 @@ export const DayPicker = memo(function DayPicker(
const focused = document.activeElement;
// check if focused is a date cell
if (!focused?.hasAttribute('data-is-date-cell')) return;
if (!(focused as HTMLElement | null)?.dataset.isDateCell) return;
if (e.shiftKey) return;
e.preventDefault();