chore: integrate @tanstack/eslint-plugin-query and fix service layer lint errors (#30444)

This commit is contained in:
yyh
2026-01-04 11:20:06 +08:00
committed by GitHub
parent 815ae6c754
commit 822374eca5
11 changed files with 44 additions and 25 deletions

30
web/pnpm-lock.yaml generated
View File

@ -406,6 +406,9 @@ importers:
'@storybook/react':
specifier: 9.1.13
version: 9.1.13(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(storybook@9.1.17(@testing-library/dom@10.4.1)(vite@7.3.0(@types/node@18.15.0)(jiti@1.21.7)(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2)))(typescript@5.9.3)
'@tanstack/eslint-plugin-query':
specifier: ^5.91.2
version: 5.91.2(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)
'@tanstack/react-devtools':
specifier: ^0.9.0
version: 0.9.0(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(csstype@3.2.3)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(solid-js@1.9.10)
@ -3387,6 +3390,11 @@ packages:
peerDependencies:
solid-js: '>=1.9.7'
'@tanstack/eslint-plugin-query@5.91.2':
resolution: {integrity: sha512-UPeWKl/Acu1IuuHJlsN+eITUHqAaa9/04geHHPedY8siVarSaWprY0SVMKrkpKfk5ehRT7+/MZ5QwWuEtkWrFw==}
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
'@tanstack/form-core@1.27.1':
resolution: {integrity: sha512-hPM+0tUnZ2C2zb2TE1lar1JJ0S0cbnQHlUwFcCnVBpMV3rjtUzkoM766gUpWrlmTGCzNad0GbJ0aTxVsjT6J8g==}
@ -10130,7 +10138,7 @@ snapshots:
'@es-joy/jsdoccomment@0.76.0':
dependencies:
'@types/estree': 1.0.8
'@typescript-eslint/types': 8.50.0
'@typescript-eslint/types': 8.50.1
comment-parser: 1.4.1
esquery: 1.6.0
jsdoc-type-pratt-parser: 6.10.0
@ -10138,7 +10146,7 @@ snapshots:
'@es-joy/jsdoccomment@0.78.0':
dependencies:
'@types/estree': 1.0.8
'@typescript-eslint/types': 8.50.0
'@typescript-eslint/types': 8.50.1
comment-parser: 1.4.1
esquery: 1.6.0
jsdoc-type-pratt-parser: 7.0.0
@ -11957,7 +11965,7 @@ snapshots:
'@stylistic/eslint-plugin@5.6.1(eslint@9.39.2(jiti@1.21.7))':
dependencies:
'@eslint-community/eslint-utils': 4.9.0(eslint@9.39.2(jiti@1.21.7))
'@typescript-eslint/types': 8.49.0
'@typescript-eslint/types': 8.50.1
eslint: 9.39.2(jiti@1.21.7)
eslint-visitor-keys: 4.2.1
espree: 10.4.0
@ -12039,6 +12047,14 @@ snapshots:
- csstype
- utf-8-validate
'@tanstack/eslint-plugin-query@5.91.2(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)':
dependencies:
'@typescript-eslint/utils': 8.50.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)
eslint: 9.39.2(jiti@1.21.7)
transitivePeerDependencies:
- supports-color
- typescript
'@tanstack/form-core@1.27.1':
dependencies:
'@tanstack/devtools-event-client': 0.3.5
@ -12512,8 +12528,8 @@ snapshots:
'@typescript-eslint/project-service@8.50.0(typescript@5.9.3)':
dependencies:
'@typescript-eslint/tsconfig-utils': 8.50.0(typescript@5.9.3)
'@typescript-eslint/types': 8.50.0
'@typescript-eslint/tsconfig-utils': 8.50.1(typescript@5.9.3)
'@typescript-eslint/types': 8.50.1
debug: 4.4.3
typescript: 5.9.3
transitivePeerDependencies:
@ -12742,7 +12758,7 @@ snapshots:
'@vitest/eslint-plugin@1.6.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)(vitest@4.0.16(@types/node@18.15.0)(happy-dom@20.0.11)(jiti@1.21.7)(jsdom@27.3.0(canvas@3.2.0))(sass@1.95.0)(terser@5.44.1)(tsx@4.21.0)(yaml@2.8.2))':
dependencies:
'@typescript-eslint/scope-manager': 8.49.0
'@typescript-eslint/scope-manager': 8.50.1
'@typescript-eslint/utils': 8.50.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)
eslint: 9.39.2(jiti@1.21.7)
optionalDependencies:
@ -14240,7 +14256,7 @@ snapshots:
eslint-plugin-perfectionist@4.15.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3):
dependencies:
'@typescript-eslint/types': 8.49.0
'@typescript-eslint/types': 8.50.1
'@typescript-eslint/utils': 8.50.1(eslint@9.39.2(jiti@1.21.7))(typescript@5.9.3)
eslint: 9.39.2(jiti@1.21.7)
natural-orderby: 5.0.0