chore: update deps (#34487)

This commit is contained in:
Stephen Zhou
2026-04-03 11:26:49 +08:00
committed by GitHub
parent f814579ed2
commit f2fc213d52
11 changed files with 1347 additions and 1458 deletions

View File

@@ -743,9 +743,6 @@
"no-restricted-imports": {
"count": 2
},
"react-refresh/only-export-components": {
"count": 1
},
"tailwindcss/enforce-consistent-class-order": {
"count": 1
}
@@ -3630,17 +3627,11 @@
}
},
"app/components/base/prompt-editor/plugins/shortcuts-popup-plugin/index.tsx": {
"react-refresh/only-export-components": {
"count": 1
},
"ts/no-explicit-any": {
"count": 2
}
},
"app/components/base/prompt-editor/plugins/update-block.tsx": {
"react-refresh/only-export-components": {
"count": 2
},
"ts/no-explicit-any": {
"count": 2
}
@@ -7917,9 +7908,6 @@
}
},
"app/components/signin/countdown.tsx": {
"react-refresh/only-export-components": {
"count": 2
},
"tailwindcss/enforce-consistent-class-order": {
"count": 1
}
@@ -8317,7 +8305,7 @@
},
"app/components/workflow/block-selector/index-bar.tsx": {
"react-refresh/only-export-components": {
"count": 5
"count": 1
},
"tailwindcss/enforce-consistent-class-order": {
"count": 1

View File

@@ -1,14 +1,12 @@
// @ts-check
import antfu, { GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_TESTS, GLOB_TS, GLOB_TSX, isInEditorEnv, isInGitHooksOrLintStaged } from '@antfu/eslint-config'
import pluginReact from '@eslint-react/eslint-plugin'
import pluginQuery from '@tanstack/eslint-plugin-query'
import md from 'eslint-markdown'
import tailwindcss from 'eslint-plugin-better-tailwindcss'
import hyoban from 'eslint-plugin-hyoban'
import markdownPreferences from 'eslint-plugin-markdown-preferences'
import noBarrelFiles from 'eslint-plugin-no-barrel-files'
import { reactRefresh } from 'eslint-plugin-react-refresh'
import sonar from 'eslint-plugin-sonarjs'
import storybook from 'eslint-plugin-storybook'
import {
@@ -26,11 +24,14 @@ process.env.TAILWIND_MODE ??= 'ESLINT'
const disableRuleAutoFix = !(isInEditorEnv() || isInGitHooksOrLintStaged())
const plugins = pluginReact.configs.all.plugins
export default antfu(
{
react: false,
react: {
overrides: {
'react/set-state-in-effect': 'error',
'react/no-unnecessary-use-prefix': 'error',
},
},
nextjs: {
overrides: {
'next/no-img-element': 'off',
@@ -58,24 +59,6 @@ export default antfu(
e18e: false,
pnpm: false,
},
{
plugins: {
'react': plugins?.['@eslint-react'],
'react-dom': plugins?.['@eslint-react/dom'],
'react-naming-convention': plugins?.['@eslint-react/naming-convention'],
'react-rsc': plugins?.['@eslint-react/rsc'],
'react-web-api': plugins?.['@eslint-react/web-api'],
},
},
{
files: [GLOB_TS, GLOB_TSX],
rules: {
...pluginReact.configs['recommended-typescript'].rules,
'react/prefer-namespace-import': 'error',
'react/set-state-in-effect': 'error',
'react/no-unnecessary-use-prefix': 'error',
},
},
{
files: [...GLOB_TESTS, GLOB_MARKDOWN_CODE, 'vitest.setup.ts', 'test/i18n-mock.ts'],
rules: {
@@ -92,7 +75,6 @@ export default antfu(
'no-barrel-files/no-barrel-files': 'error',
},
},
reactRefresh.configs.next(),
markdownPreferences.configs.standard,
{
files: [GLOB_MARKDOWN],
@@ -231,10 +213,3 @@ export default antfu(
'tailwindcss/no-unnecessary-whitespace',
]
: [])
.renamePlugins({
'@eslint-react': 'react',
'@eslint-react/dom': 'react-dom',
'@eslint-react/naming-convention': 'react-naming-convention',
'@eslint-react/rsc': 'react-rsc',
'@eslint-react/web-api': 'react-web-api',
})

View File

@@ -6,7 +6,6 @@ export function getInitOptions(): InitOptions {
// We do not have en for fallback
load: 'currentOnly',
fallbackLng: 'en-US',
showSupportNotice: false,
partialBundledLanguages: true,
keySeparator: false,
ns: namespaces,

View File

@@ -212,7 +212,6 @@
"eslint-plugin-hyoban": "catalog:",
"eslint-plugin-markdown-preferences": "catalog:",
"eslint-plugin-no-barrel-files": "catalog:",
"eslint-plugin-react-hooks": "catalog:",
"eslint-plugin-react-refresh": "catalog:",
"eslint-plugin-sonarjs": "catalog:",
"eslint-plugin-storybook": "catalog:",
@@ -221,7 +220,6 @@
"knip": "catalog:",
"postcss": "catalog:",
"react-server-dom-webpack": "catalog:",
"sass": "catalog:",
"storybook": "catalog:",
"tailwindcss": "catalog:",
"tsx": "catalog:",