chore: update lint

This commit is contained in:
Stephen Zhou 2024-10-19 09:01:59 +08:00
parent 04ac781838
commit a0293f4a66
No known key found for this signature in database
8 changed files with 357 additions and 497 deletions

View File

@ -1,5 +1,4 @@
import type { SVGProps } from "react"
import React from "react"
export function PhUsersBold(props: SVGProps<SVGSVGElement>) {
return (

View File

@ -3,7 +3,7 @@ import { typescriptHappyForwardRef } from "foxact/typescript-happy-forward-ref"
import type { HTMLMotionProps } from "framer-motion"
import { AnimatePresence } from "framer-motion"
import { atom, useAtomValue } from "jotai"
import type React from "react"
import type * as React from "react"
import type { JSX, PropsWithChildren, ReactNode } from "react"
import { useId } from "react"

View File

@ -1,5 +1,6 @@
import { m, useAnimation } from "framer-motion"
import React, { cloneElement, useEffect } from "react"
import * as React from "react"
import { cloneElement, useEffect } from "react"
import { cn } from "~/lib/utils"

View File

@ -1,4 +1,4 @@
import type React from "react"
import type * as React from "react"
import { FeedViewType } from "~/lib/enum"

View File

@ -3,7 +3,8 @@ import { repository } from "@pkg"
import { Slot } from "@radix-ui/react-slot"
import { throttle } from "lodash-es"
import type { PropsWithChildren } from "react"
import React, { forwardRef, useEffect, useRef, useState } from "react"
import * as React from "react"
import { forwardRef, useEffect, useRef, useState } from "react"
import { useHotkeys } from "react-hotkeys-hook"
import { Trans, useTranslation } from "react-i18next"
import { useResizable } from "react-resizable-layout"

View File

@ -28,13 +28,8 @@ export default defineConfig(
"require-await": "off",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-misused-promises": [
"warn",
{
checksVoidReturn: { arguments: false, attributes: false },
},
],
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-misused-promises": "off",
},
},
{
@ -47,12 +42,9 @@ export default defineConfig(
"no-debug": noDebug,
},
rules: {
"@typescript-eslint/no-floating-promises": "off",
"no-debug/no-debug-stack": "error",
"unicorn/prefer-math-trunc": "off",
"@eslint-react/no-clone-element": 0,
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": 0,
"@typescript-eslint/no-misused-promises": 0,
// NOTE: Disable this temporarily
"react-compiler/react-compiler": 0,
"no-restricted-syntax": 0,

View File

@ -76,8 +76,8 @@
"electron-devtools-installer": "3.2.0",
"electron-packager-languages": "0.5.0",
"electron-vite": "^2.3.0",
"eslint": "^9.12.0",
"eslint-config-hyoban": "^3.1.10",
"eslint": "^9.13.0",
"eslint-config-hyoban": "^3.1.11",
"fake-indexeddb": "6.0.0",
"happy-dom": "15.7.4",
"hono": "4.6.3",

File diff suppressed because it is too large Load Diff