chore: update lint config (#133)

This commit is contained in:
Stephen Zhou 2024-07-14 20:02:44 +08:00 committed by GitHub
parent f50f7e737f
commit 0abe0c5c72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 413 additions and 423 deletions

View File

@ -141,7 +141,7 @@
"electron-devtools-installer": "3.2.0",
"electron-vite": "^2.3.0",
"eslint": "^9.6.0",
"eslint-config-hyoban": "3.0.0-beta.26",
"eslint-config-hyoban": "3.0.0-beta.27",
"hono": "4.4.7",
"lint-staged": "15.2.7",
"postcss": "8.4.38",

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,3 @@
/* eslint-disable @stylistic/no-tabs */
import { cn } from "@renderer/lib/utils"
export const EmptyIcon: Component = ({ className }) => (

View File

@ -1,4 +1,3 @@
/* eslint-disable @eslint-react/dom/no-dangerously-set-innerhtml */
import { useUISettingSelector } from "@renderer/atoms/settings/ui"
import { cn } from "@renderer/lib/utils"
import type { FC } from "react"

View File

@ -1,4 +1,3 @@
/* eslint-disable @eslint-react/dom/no-dangerously-set-innerhtml */
import { cn } from "@renderer/lib/utils"
import markdownit from "markdown-it"
import { useMemo } from "react"

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { useLoginModalShow } from "@renderer/atoms/user"
import type { DefinedQuery } from "@renderer/lib/defineQuery"
import type {

View File

@ -26,7 +26,6 @@ export const initSentry = async () => {
}),
posthog.sentryIntegration({
organization: "follow-rg",
// eslint-disable-next-line unicorn/numeric-separators-style
projectId: 4507570439979008,
severityAllowList: ["error", "info"], // optional: here is set to handle captureMessage (info) and captureException (error)
},

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import type {
InfiniteData,
QueryFunction,

View File

@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { ShikiHighLighter } from "@renderer/components/ui/code-highlighter"
import { Image } from "@renderer/components/ui/image"
import { LinkWithTooltip } from "@renderer/components/ui/link"

View File

@ -1,7 +1,6 @@
import type { SettingPageConfig } from "./utils"
function getSettings() {
// eslint-disable-next-line unicorn/prefer-string-raw
const map = import.meta.glob("../../pages/settings/\\(settings\\)/*", { eager: true })
const settings = [] as {