Skip to content

Commit ec45de5

Browse files
authored
chore(studio): bump lint rule to error (supabase#41114)
We've removed all violations of @tanstack/query/no-deprecated-options, so we can bump that lint rule up to an error.
1 parent e61d0e6 commit ec45de5

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

apps/studio/.github/eslint-rule-baselines.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"react-hooks/exhaustive-deps": 226,
44
"import/no-anonymous-default-export": 62,
55
"@tanstack/query/exhaustive-deps": 18,
6-
"@tanstack/query/no-deprecated-options": 0,
76
"@typescript-eslint/no-explicit-any": 1452
87
},
98
"ruleFiles": {
@@ -255,7 +254,6 @@
255254
"hooks/analytics/useProjectUsageStats.tsx": 1,
256255
"hooks/analytics/useSingleLog.tsx": 1
257256
},
258-
"@tanstack/query/no-deprecated-options": {},
259257
"@typescript-eslint/no-explicit-any": {
260258
"components/grid/SupabaseGrid.tsx": 1,
261259
"components/grid/SupabaseGrid.utils.ts": 4,

apps/studio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "next build && if [ \"$SKIP_ASSET_UPLOAD\" != \"1\" ]; then ./../../scripts/upload-static-assets.sh; fi",
99
"start": "next start -p 8082",
1010
"lint": "eslint .",
11-
"lint:ratchet": "tsx scripts/ratchet-eslint-rules.ts --rule react-hooks/exhaustive-deps --rule import/no-anonymous-default-export --rule @tanstack/query/exhaustive-deps --rule @tanstack/query/no-deprecated-options --rule @typescript-eslint/no-explicit-any",
11+
"lint:ratchet": "tsx scripts/ratchet-eslint-rules.ts --rule react-hooks/exhaustive-deps --rule import/no-anonymous-default-export --rule @tanstack/query/exhaustive-deps --rule @typescript-eslint/no-explicit-any",
1212
"clean": "rimraf node_modules tsconfig.tsbuildinfo .next .turbo",
1313
"test": "vitest --run --coverage",
1414
"test:watch": "vitest watch",

packages/eslint-config-supabase/next.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const tanstackQueryConfig = {
2121
plugins: { '@tanstack/query': fixupPluginRules(tanstackQuery) },
2222
rules: {
2323
'@tanstack/query/exhaustive-deps': 'warn',
24-
'@tanstack/query/no-deprecated-options': 'warn',
24+
'@tanstack/query/no-deprecated-options': 'error',
2525
'@tanstack/query/prefer-query-object-syntax': 'warn',
2626
'@tanstack/query/stable-query-client': 'warn',
2727
},

0 commit comments

Comments
 (0)