Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

[bot] Decrease ESLint ratchet baselines (#45486)

supabase-supabase-autofixer[bot]6cfeb1db2bae
diff --git a/apps/studio/.github/eslint-rule-baselines.json b/apps/studio/.github/eslint-rule-baselines.json
index 1e1c7053f8f..af9d8956796 100644
--- a/apps/studio/.github/eslint-rule-baselines.json
+++ b/apps/studio/.github/eslint-rule-baselines.json
@@ -1,12 +1,12 @@
{
"rules": {
- "react-hooks/exhaustive-deps": 182,
+ "react-hooks/exhaustive-deps": 179,
"import/no-anonymous-default-export": 57,
"@tanstack/query/exhaustive-deps": 12,
- "@typescript-eslint/no-explicit-any": 1056,
+ "@typescript-eslint/no-explicit-any": 1042,
"no-restricted-imports": 0,
- "no-restricted-exports": 267,
- "react/no-unstable-nested-components": 57,
+ "no-restricted-exports": 255,
+ "react/no-unstable-nested-components": 51,
"studio/require-safe-sql-fragment": 158
},
"ruleFiles": {
@@ -45,7 +45,6 @@
"components/interfaces/Database/Replication/ReplicationDiagram/index.tsx": 1,
"components/interfaces/DiskManagement/DiskManagementForm.tsx": 1,
"components/interfaces/Functions/EdgeFunctionDetails/EdgeFunctionDetails.tsx": 1,
- "components/interfaces/GraphQL/GraphiQL.tsx": 1,
"components/interfaces/Integrations/CronJobs/CreateCronJobSheet/CreateCronJobSheet.tsx": 1,
"components/interfaces/Integrations/Queues/QueuesSettings.tsx": 1,
"components/interfaces/Integrations/Queues/SingleQueue/QueueSettings.tsx": 1,
@@ -89,7 +88,6 @@
"components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/index.tsx": 2,
"components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.tsx": 1,
"components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/TextEditor.tsx": 2,
- "components/interfaces/TableGridEditor/TableGridEditor.tsx": 2,
"components/interfaces/UnifiedLogs/ServiceFlow/components/ServiceFlowHeader.tsx": 2,
"components/layouts/EdgeFunctionsLayout/EdgeFunctionDetailsLayout.tsx": 1,
"components/layouts/ProjectLayout/ConnectingState.tsx": 1,
@@ -218,9 +216,8 @@
},
"@typescript-eslint/no-explicit-any": {
"components/grid/SupabaseGrid.tsx": 1,
- "components/grid/SupabaseGrid.utils.ts": 4,
+ "components/grid/SupabaseGrid.utils.ts": 2,
"components/grid/components/common/MonacoEditor.tsx": 3,
- "components/grid/components/editor/BooleanEditor.tsx": 1,
"components/grid/components/editor/JsonEditor.tsx": 2,
"components/grid/components/editor/SelectEditor.tsx": 1,
"components/grid/components/editor/TextEditor.tsx": 1,
@@ -328,7 +325,7 @@
"components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx": 2,
"components/interfaces/Organization/BillingSettings/CreditTopUp.tsx": 2,
"components/interfaces/Organization/BillingSettings/Subscription/ExitSurveyModal.tsx": 1,
- "components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx": 2,
+ "components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx": 1,
"components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx": 1,
"components/interfaces/Organization/BillingSettings/Subscription/SubscriptionPlanUpdateDialog.tsx": 6,
"components/interfaces/Organization/BillingSettings/Subscription/UpgradeModal.tsx": 3,
@@ -388,8 +385,6 @@
"components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx": 2,
"components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx": 1,
"components/interfaces/Settings/Database/NetworkRestrictions/NetworkRestrictions.utils.ts": 2,
- "components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx": 1,
- "components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx": 1,
"components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx": 1,
"components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/InstanceNode.tsx": 1,
"components/interfaces/Settings/Logs/LogSelectionRenderers/DefaultPreviewSelectionRenderer.tsx": 1,
@@ -465,12 +460,12 @@
"components/interfaces/UnifiedLogs/ServiceFlow/config/fieldHelpers.ts": 3,
"components/interfaces/UnifiedLogs/ServiceFlow/types.ts": 10,
"components/interfaces/UnifiedLogs/ServiceFlow/utils/storageUtils.ts": 3,
- "components/interfaces/UnifiedLogs/UnifiedLogs.queries.ts": 5,
+ "components/interfaces/UnifiedLogs/UnifiedLogs.queries.ts": 4,
"components/interfaces/UnifiedLogs/UnifiedLogs.tsx": 8,
"components/interfaces/UnifiedLogs/UnifiedLogs.utils.ts": 1,
"components/interfaces/UnifiedLogs/components/DownloadLogsButton.tsx": 1,
"components/interfaces/UnifiedLogs/components/LogsListPanel.tsx": 1,
- "components/layouts/AccountLayout/WithSidebar.tsx": 3,
+ "components/layouts/AccountLayout/WithSidebar.tsx": 2,
"components/layouts/DocsLayout/DocsLayout.tsx": 2,
"components/layouts/IntegrationsLayout/Integrations.utils.ts": 2,
"components/layouts/Navigation/LayoutHeader/BreadcrumbsView.tsx": 2,
@@ -486,7 +481,6 @@
"components/layouts/SQLEditorLayout/SQLEditorNavV2/SearchList.tsx": 1,
"components/layouts/TableEditorLayout/EntityListItem.tsx": 1,
"components/layouts/TableEditorLayout/TableEditorMenu.tsx": 1,
- "components/layouts/Tabs/NewTab.tsx": 1,
"components/to-be-cleaned/KeyMap.tsx": 3,
"components/ui/AIAssistantPanel/AIAssistant.utils.ts": 1,
"components/ui/AIAssistantPanel/DisplayBlockRenderer.tsx": 1,
@@ -534,7 +528,6 @@
"components/ui/SchemaComboBox.tsx": 1,
"components/ui/SchemaSelector.tsx": 1,
"components/ui/SqlEditor.tsx": 6,
- "components/ui/TwoOptionToggle.tsx": 4,
"components/ui/ui.types.ts": 1,
"data/ai/check-api-key-query.ts": 1,
"data/ai/rate-message-mutation.ts": 1,
@@ -593,7 +586,7 @@
"data/replication/restart-pipeline-helper.ts": 2,
"data/replication/rollback-tables-mutation.ts": 1,
"data/reports/database-charts.ts": 4,
- "data/reports/v2/auth.config.ts": 16,
+ "data/reports/v2/auth.config.ts": 15,
"data/reports/v2/edge-functions.config.ts": 9,
"data/reports/v2/reports.types.ts": 2,
"data/sql/execute-sql-query.ts": 5,
@@ -710,7 +703,6 @@
"components/interfaces/Database/EnumeratedTypes/EnumeratedTypeValueRow.tsx": 1,
"components/interfaces/Database/Extensions/ExtensionCardSkeleton.tsx": 1,
"components/interfaces/Database/Functions/FunctionsList/FunctionList.tsx": 1,
- "components/interfaces/Database/Indexes/Indexes.tsx": 1,
"components/interfaces/Database/Migrations/Migrations.tsx": 1,
"components/interfaces/Database/Privileges/PrivilegesHead.tsx": 1,
"components/interfaces/Database/Privileges/PrivilegesTable.tsx": 1,
@@ -727,10 +719,8 @@
"components/interfaces/Docs/Snippets.ts": 1,
"components/interfaces/Functions/CommandRender.tsx": 1,
"components/interfaces/Functions/EdgeFunctionOverview/EdgeFunctionOverview.tsx": 1,
- "components/interfaces/Functions/EdgeFunctionSecrets/AddNewSecretForm.tsx": 1,
"components/interfaces/Functions/EdgeFunctionSecrets/EdgeFunctionSecret.tsx": 1,
"components/interfaces/Functions/FunctionsNav.tsx": 1,
- "components/interfaces/GraphQL/GraphiQL.tsx": 1,
"components/interfaces/Home/ProjectUsage.tsx": 1,
"components/interfaces/Integrations/CronJobs/CronJobsEmptyState.tsx": 1,
"components/interfaces/Integrations/CronJobs/CronSyntaxChart.tsx": 1,
@@ -738,9 +728,7 @@
"components/interfaces/Integrations/VercelGithub/ProjectLinker.tsx": 1,
"components/interfaces/Integrations/Wrappers/InputField.tsx": 1,
"components/interfaces/Integrations/Wrappers/WrapperTableEditor.tsx": 1,
- "components/interfaces/Linter/LintDetail.tsx": 1,
"components/interfaces/Linter/LintPageTabs.tsx": 1,
- "components/interfaces/Linter/LinterDataGrid.tsx": 1,
"components/interfaces/Linter/LinterFilters.tsx": 1,
"components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingBreakdown.tsx": 1,
"components/interfaces/Organization/BillingSettings/BillingEmail.tsx": 1,
@@ -786,8 +774,6 @@
"components/interfaces/Reports/ReportStickyNav.tsx": 1,
"components/interfaces/Reports/ReportWidget.tsx": 1,
"components/interfaces/Reports/Reports.tsx": 1,
- "components/interfaces/RoleImpersonationSelector/RoleImpersonationRadio.tsx": 1,
- "components/interfaces/RoleImpersonationSelector/UserImpersonationSelector.tsx": 1,
"components/interfaces/SQLEditor/DownloadSnippetModal.tsx": 1,
"components/interfaces/SQLEditor/InlineWidget.tsx": 1,
"components/interfaces/SQLEditor/MonacoEditor.tsx": 1,
@@ -797,9 +783,6 @@
"components/interfaces/SQLEditor/UtilityPanel/ReadOnlyBadge.tsx": 1,
"components/interfaces/SQLEditor/UtilityPanel/Results.tsx": 1,
"components/interfaces/SQLEditor/UtilityPanel/SavingIndicator.tsx": 1,
- "components/interfaces/SQLEditor/UtilityPanel/UtilityActions.tsx": 1,
- "components/interfaces/SQLEditor/UtilityPanel/UtilityPanel.tsx": 1,
- "components/interfaces/SQLEditor/UtilityPanel/UtilityTabResults.tsx": 1,
"components/interfaces/SQLEditor/hooks.ts": 1,
"components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx": 1,
"components/interfaces/Settings/Addons/IPv4SidePanel.tsx": 1,
@@ -852,7 +835,6 @@
"components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetImportConfiguration.tsx": 1,
"components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadSheetTextInput.tsx": 1,
"components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetPreviewGrid.tsx": 1,
- "components/interfaces/TableGridEditor/ViewEntityAutofixSecurityModal.tsx": 1,
"components/layouts/APIKeys/APIKeysLayout.tsx": 1,
"components/layouts/AccountLayout/AccountLayout.tsx": 1,
"components/layouts/AdvisorsLayout/AdvisorsLayout.tsx": 1,
@@ -927,7 +909,6 @@
"components/ui/ShimmerLine.tsx": 1,
"components/ui/SparkBar.tsx": 1,
"components/ui/SqlEditor.tsx": 1,
- "components/ui/TwoOptionToggle.tsx": 1,
"data/prefetchers/PrefetchableLink.tsx": 1,
"hooks/analytics/useDbQuery.tsx": 1,
"hooks/analytics/useLogsPreview.tsx": 1,
@@ -954,16 +935,13 @@
"components/interfaces/Integrations/VercelGithub/ProjectLinker.tsx": 1,
"components/interfaces/Linter/LintPageTabs.tsx": 1,
"components/interfaces/Linter/LinterDataGrid.tsx": 3,
- "components/interfaces/Organization/BillingSettings/Subscription/PaymentMethodSelection.tsx": 1,
"components/interfaces/Organization/Usage/UsageBarChart.tsx": 1,
"components/interfaces/ProjectAPIDocs/FirstLevelNav.tsx": 1,
- "components/interfaces/Settings/General/TransferProjectPanel/TransferProjectButton.tsx": 1,
"components/interfaces/Settings/Logs/LogSelection.tsx": 1,
"components/interfaces/Settings/Logs/LogTable.tsx": 3,
"components/interfaces/Settings/Logs/LogsFormatters.tsx": 2,
"components/interfaces/Settings/Logs/PreviewFilterPanelWithUniversal.tsx": 1,
"components/interfaces/Storage/StoragePolicies/StoragePoliciesEditPolicyModal.tsx": 1,
- "components/interfaces/TableGridEditor/SidePanelEditor/ForeignKeySelector/ForeignKeySelector.tsx": 2,
"components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx": 5,
"components/layouts/Navigation/LayoutHeader/FeedbackDropdown/FeedbackWidget.tsx": 1,
"components/layouts/Navigation/NavigationBar/NavigationIconLink.tsx": 1,
@@ -977,8 +955,6 @@
"components/ui/Charts/ComposedChart.utils.tsx": 3,
"components/ui/ErrorBoundary/ErrorBoundary.tsx": 1,
"components/ui/NoPermission.tsx": 1,
- "components/ui/SqlEditor.tsx": 1,
- "pages/integrations/vercel/[slug]/deploy-button/new-project.tsx": 1,
"pages/project/[ref]/observability/database.tsx": 1
},
"studio/require-safe-sql-fragment": {