Skip to content

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

chore: Migrate eslint for all apps to use flat config (#39486)

Ivan Vasilov56d40fe0b2f1
diff --git a/apps/cms/.eslintrc.cjs b/apps/cms/.eslintrc.cjs
deleted file mode 100644
index 4f1d845f8cf..00000000000
--- a/apps/cms/.eslintrc.cjs
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- extends: ['eslint-config-supabase/next'],
-}
diff --git a/apps/cms/eslint.config.cjs b/apps/cms/eslint.config.cjs
new file mode 100644
index 00000000000..fec3ac9b3ab
--- /dev/null
+++ b/apps/cms/eslint.config.cjs
@@ -0,0 +1,4 @@
+const { defineConfig } = require('eslint/config')
+const supabaseConfig = require('eslint-config-supabase/next')
+
+module.exports = defineConfig([supabaseConfig])
diff --git a/apps/cms/package.json b/apps/cms/package.json
index 25169cc2c0b..cc7a53cf52a 100644
--- a/apps/cms/package.json
+++ b/apps/cms/package.json
@@ -12,7 +12,7 @@
"devsafe": "rm -rf .next && cross-env NODE_OPTIONS=--no-deprecation next dev",
"generate:importmap": "cross-env NODE_OPTIONS=--no-deprecation payload generate:importmap",
"generate:types": "cross-env NODE_OPTIONS=--no-deprecation payload generate:types",
- "lint": "cross-env NODE_OPTIONS=--no-deprecation next lint",
+ "lint": "eslint .",
"migrate": "cross-env NODE_OPTIONS=--no-deprecation tsx scripts/migrate.ts",
"payload": "cross-env NODE_OPTIONS=--no-deprecation payload",
"start": "cross-env NODE_OPTIONS=--no-deprecation next start",
diff --git a/apps/design-system/.eslintrc.cjs b/apps/design-system/.eslintrc.cjs
deleted file mode 100644
index 4f1d845f8cf..00000000000
--- a/apps/design-system/.eslintrc.cjs
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- extends: ['eslint-config-supabase/next'],
-}
diff --git a/apps/design-system/eslint.config.cjs b/apps/design-system/eslint.config.cjs
new file mode 100644
index 00000000000..fec3ac9b3ab
--- /dev/null
+++ b/apps/design-system/eslint.config.cjs
@@ -0,0 +1,4 @@
+const { defineConfig } = require('eslint/config')
+const supabaseConfig = require('eslint-config-supabase/next')
+
+module.exports = defineConfig([supabaseConfig])
diff --git a/apps/design-system/package.json b/apps/design-system/package.json
index daeefc6cec0..cc8cd3e77cd 100644
--- a/apps/design-system/package.json
+++ b/apps/design-system/package.json
@@ -10,7 +10,7 @@
"build": "pnpm run content:build && pnpm run build:registry && next build --turbopack",
"build:registry": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && prettier --log-level silent --write \"registry/**/*.{ts,tsx,mdx}\" --cache",
"start": "next start",
- "lint": "next lint",
+ "lint": "eslint .",
"content:dev": "contentlayer2 dev",
"content:build": "contentlayer2 build",
"clean": "rimraf node_modules .next .turbo",
diff --git a/apps/docs/.eslintrc.cjs b/apps/docs/.eslintrc.cjs
deleted file mode 100644
index 4f1d845f8cf..00000000000
--- a/apps/docs/.eslintrc.cjs
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- extends: ['eslint-config-supabase/next'],
-}
diff --git a/apps/docs/eslint.config.cjs b/apps/docs/eslint.config.cjs
new file mode 100644
index 00000000000..fec3ac9b3ab
--- /dev/null
+++ b/apps/docs/eslint.config.cjs
@@ -0,0 +1,4 @@
+const { defineConfig } = require('eslint/config')
+const supabaseConfig = require('eslint-config-supabase/next')
+
+module.exports = defineConfig([supabaseConfig])
diff --git a/apps/docs/package.json b/apps/docs/package.json
index 17a773cb51d..e085fcb357a 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -22,7 +22,7 @@
"embeddings:nimbus:refresh": "ENABLED_FEATURES_OVERRIDE_DISABLE_ALL=true pnpm run embeddings:refresh",
"last-changed": "tsx scripts/last-changed.ts",
"last-changed:reset": "pnpm run last-changed -- --reset",
- "lint": "next lint",
+ "lint": "eslint .",
"lint:mdx": "supa-mdx-lint content --config ../../supa-mdx-lint.config.toml",
"postbuild": "pnpm run build:sitemap && pnpm run build:llms && ./../../scripts/upload-static-assets.sh",
"prebuild": "pnpm run codegen:graphql && pnpm run codegen:references && pnpm run codegen:examples",
diff --git a/apps/docs/turbo.json b/apps/docs/turbo.json
index 5e22a06e3d6..817dd4625c7 100644
--- a/apps/docs/turbo.json
+++ b/apps/docs/turbo.json
@@ -27,6 +27,9 @@
"NEXT_PUBLIC_SENTRY_DSN",
"NEXT_PUBLIC_VERCEL_ENV",
"NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA",
+ "VERCEL",
+ "VERCEL_ENV",
+ "VERCEL_GIT_COMMIT_SHA",
// These envs are used in the packages
"NEXT_PUBLIC_STORAGE_KEY",
"NEXT_PUBLIC_AUTH_DEBUG_KEY",
diff --git a/apps/studio/.eslintrc.js b/apps/studio/.eslintrc.js
deleted file mode 100644
index 45017c942f8..00000000000
--- a/apps/studio/.eslintrc.js
+++ /dev/null
@@ -1,10 +0,0 @@
-module.exports = {
- extends: ['eslint-config-supabase/next'],
- plugins: ['eslint-plugin-barrel-files'],
- rules: {
- '@next/next/no-img-element': 'off',
- 'react/no-unescaped-entities': 'off',
- 'react/display-name': 'warn',
- 'barrel-files/avoid-re-export-all': 'error',
- },
-}
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
index 0ef99c3b567..e70e547934b 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/TemplateEditor.tsx
@@ -76,7 +76,6 @@ const TemplateEditor = ({ template }: TemplateEditorProps) => {
const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false)
const [isSavingTemplate, setIsSavingTemplate] = useState(false)
- // eslint-disable-next-line react-hooks/exhaustive-deps
const spamRules = (validationResult?.rules ?? []).filter((rule) => rule.score > 0)
const preventSaveFromSpamCheck = builtInSMTP && spamRules.length > 0
diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
index 6051d14608b..160d294d00e 100644
--- a/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
+++ b/apps/studio/components/interfaces/Organization/BillingSettings/CostControl/SpendCapSidePanel.tsx
@@ -74,7 +74,6 @@ const SpendCapSidePanel = () => {
if (visible && subscription !== undefined) {
setSelectedOption(isSpendCapOn ? 'on' : 'off')
}
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [visible, isLoading, subscription, isSpendCapOn])
const onConfirm = async () => {
diff --git a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
index 7d9aee83ae9..17644f6ff2f 100644
--- a/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
+++ b/apps/studio/components/interfaces/Organization/Usage/Usage.tsx
@@ -127,7 +127,6 @@ export const Usage = () => {
setSelectedProjectRefInputValue(projectRef)
}
// [Joshen] Since we're already looking at isSuccess
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [projectRef, isSuccessProjectDetail])
return (
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
index e680c93d09d..a35322a52de 100644
--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx
@@ -1,26 +1,28 @@
-import { ArrowDown, ArrowUp, ChevronDown, ArrowRight, TextSearch } from 'lucide-react'
+import { ArrowDown, ArrowRight, ArrowUp, ChevronDown, TextSearch } from 'lucide-react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid'
import { useParams } from 'common'
+import { ButtonTooltip } from 'components/ui/ButtonTooltip'
import {
Button,
+ CodeBlock,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
Sheet,
SheetContent,
+ SheetTitle,
TabsContent_Shadcn_,
TabsList_Shadcn_,
TabsTrigger_Shadcn_,
Tabs_Shadcn_,
cn,
- CodeBlock,
- SheetTitle,
} from 'ui'
import { InfoTooltip } from 'ui-patterns/info-tooltip'
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
+import { useQueryPerformanceSort } from './hooks/useQueryPerformanceSort'
import { hasIndexRecommendations } from './IndexAdvisor/index-advisor.utils'
import { IndexSuggestionIcon } from './IndexAdvisor/IndexSuggestionIcon'
import { QueryDetail } from './QueryDetail'
@@ -30,10 +32,8 @@ import {
QUERY_PERFORMANCE_REPORT_TYPES,
QUERY_PERFORMANCE_ROLE_DESCRIPTION,
} from './QueryPerformance.constants'
-import { useQueryPerformanceSort } from './hooks/useQueryPerformanceSort'
-import { formatDuration } from './QueryPerformance.utils'
-import { ButtonTooltip } from 'components/ui/ButtonTooltip'
import { QueryPerformanceRow } from './QueryPerformance.types'
+import { formatDuration } from './QueryPerformance.utils'
interface QueryPerformanceGridProps {
aggregatedData: QueryPerformanceRow[]
@@ -369,7 +369,6 @@ export const QueryPerformanceGrid = ({
useEffect(() => {
setSelectedRow(undefined)
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [search, roles, urlSort, order])
const handleKeyDown = useCallback(
diff --git a/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.tsx b/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.tsx
index e827c71f24d..c6471fd9174 100644
--- a/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.tsx
+++ b/apps/studio/components/interfaces/Storage/StorageExplorer/StorageExplorer.tsx
@@ -53,7 +53,6 @@ export const StorageExplorer = ({ bucket }: StorageExplorerProps) => {
// Things like showing results from a search filter is "temporary", hence we use react state to manage
const [itemSearchString, setItemSearchString] = useState('')
- // eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
const fetchContents = async () => {
if (view === STORAGE_VIEWS.LIST) {
diff --git a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx
index d2250d0576a..328489afa92 100644
--- a/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx
+++ b/apps/studio/components/interfaces/UnifiedLogs/UnifiedLogs.tsx
@@ -285,7 +285,6 @@ export const UnifiedLogs = () => {
useEffect(() => {
debouncedApplyFilterSearch()
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [columnFilters, debouncedApplyFilterSearch])
useEffect(() => {
diff --git a/apps/studio/data/analytics/infra-monitoring-queries.ts b/apps/studio/data/analytics/infra-monitoring-queries.ts
index dad4edd4258..7cc001a9390 100644
--- a/apps/studio/data/analytics/infra-monitoring-queries.ts
+++ b/apps/studio/data/analytics/infra-monitoring-queries.ts
@@ -1,6 +1,6 @@
-import { useInfraMonitoringQuery } from './infra-monitoring-query'
-import type { InfraMonitoringAttribute } from './infra-monitoring-query'
import { AnalyticsInterval } from './constants'
+import type { InfraMonitoringAttribute } from './infra-monitoring-query'
+import { useInfraMonitoringQuery } from './infra-monitoring-query'
export function useInfraMonitoringQueries(
attributes: InfraMonitoringAttribute[],
@@ -13,6 +13,7 @@ export function useInfraMonitoringQueries(
isVisible: boolean
) {
return attributes.map((attribute) =>
+ // eslint-disable-next-line react-hooks/rules-of-hooks
useInfraMonitoringQuery(
{
projectRef: ref as string,
diff --git a/apps/studio/data/analytics/project-daily-stats-queries.ts b/apps/studio/data/analytics/project-daily-stats-queries.ts
index 92e29be93f8..d0398649759 100644
--- a/apps/studio/data/analytics/project-daily-stats-queries.ts
+++ b/apps/studio/data/analytics/project-daily-stats-queries.ts
@@ -1,5 +1,5 @@
-import { useProjectDailyStatsQuery } from './project-daily-stats-query'
import type { ProjectDailyStatsAttribute } from './project-daily-stats-query'
+import { useProjectDailyStatsQuery } from './project-daily-stats-query'
export function useProjectDailyStatsQueries(
attributes: ProjectDailyStatsAttribute[],
@@ -10,6 +10,7 @@ export function useProjectDailyStatsQueries(
isVisible: boolean
) {
return attributes.map((attribute) =>
+ // eslint-disable-next-line react-hooks/rules-of-hooks
useProjectDailyStatsQuery(
{
projectRef: ref as string,
diff --git a/apps/studio/data/graphql/fragment-masking.ts b/apps/studio/data/graphql/fragment-masking.ts
index 494960811fa..20d21c67a3a 100644
--- a/apps/studio/data/graphql/fragment-masking.ts
+++ b/apps/studio/data/graphql/fragment-masking.ts
@@ -1,5 +1,4 @@
-/* eslint-disable */
-import { ResultOf, DocumentTypeDecoration } from '@graphql-typed-document-node/core'
+import { DocumentTypeDecoration, ResultOf } from '@graphql-typed-document-node/core'
import { Incremental, TypedDocumentString } from './graphql'
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> =
diff --git a/apps/studio/data/graphql/gql.ts b/apps/studio/data/graphql/gql.ts
index 1f4ff76f6e6..9164d77dbcd 100644
--- a/apps/studio/data/graphql/gql.ts
+++ b/apps/studio/data/graphql/gql.ts
@@ -1,4 +1,3 @@
-/* eslint-disable */
import * as types from './graphql'
/**
diff --git a/apps/studio/data/graphql/graphql.ts b/apps/studio/data/graphql/graphql.ts
index 99d32bef6b9..aac84b54d99 100644
--- a/apps/studio/data/graphql/graphql.ts
+++ b/apps/studio/data/graphql/graphql.ts
@@ -1,4 +1,3 @@
-/* eslint-disable */
import { DocumentTypeDecoration } from '@graphql-typed-document-node/core'
export type Maybe<T> = T | null
export type InputMaybe<T> = Maybe<T>
diff --git a/apps/studio/data/graphql/index.ts b/apps/studio/data/graphql/index.ts
index f9bc8e591d0..83851531f64 100644
--- a/apps/studio/data/graphql/index.ts
+++ b/apps/studio/data/graphql/index.ts
@@ -1,2 +1,2 @@
-export * from './fragment-masking'
-export * from './gql'
+export {} from './fragment-masking'
+export { graphql } from './gql'
diff --git a/apps/studio/eslint.config.cjs b/apps/studio/eslint.config.cjs
new file mode 100644
index 00000000000..5b3f0df7fd3
--- /dev/null
+++ b/apps/studio/eslint.config.cjs
@@ -0,0 +1,19 @@
+const { defineConfig } = require('eslint/config')
+const barrelFiles = require('eslint-plugin-barrel-files')
+const supabaseConfig = require('eslint-config-supabase/next')
+
+module.exports = defineConfig([
+ { files: ['**/*.ts', '**/*.tsx'] },
+ supabaseConfig,
+ {
+ plugins: {
+ 'barrel-files': barrelFiles,
+ },
+ rules: {
+ '@next/next/no-img-element': 'off',
+ 'react/no-unescaped-entities': 'off',
+ 'react/display-name': 'warn',
+ 'barrel-files/avoid-re-export-all': 'error',
+ },
+ },
+])
diff --git a/apps/studio/package.json b/apps/studio/package.json
index 5a0b527c809..842f137b5fa 100644
--- a/apps/studio/package.json
+++ b/apps/studio/package.json
@@ -7,7 +7,7 @@
"dev": "next dev --turbopack -p 8082",
"build": "next build && ./../../scripts/upload-static-assets.sh",
"start": "next start",
- "lint": "next lint",
+ "lint": "eslint .",
"clean": "rimraf node_modules tsconfig.tsbuildinfo .next .turbo",
"test": "vitest --run --coverage",
"test:watch": "vitest watch",
diff --git a/apps/studio/pages/_document.tsx b/apps/studio/pages/_document.tsx
index c8c36e2c348..e91481eb0f3 100644
--- a/apps/studio/pages/_document.tsx
+++ b/apps/studio/pages/_document.tsx
@@ -1,4 +1,3 @@
-/* eslint-disable @next/next/no-css-tags */
import { BASE_PATH, IS_PLATFORM } from 'lib/constants'
import Document, { DocumentContext, Head, Html, Main, NextScript } from 'next/document'
diff --git a/apps/studio/pages/project/[ref]/advisors/performance.tsx b/apps/studio/pages/project/[ref]/advisors/performance.tsx
index 2e830a927cf..9d87e820be3 100644
--- a/apps/studio/pages/project/[ref]/advisors/performance.tsx
+++ b/apps/studio/pages/project/[ref]/advisors/performance.tsx
@@ -35,7 +35,6 @@ const ProjectLints: NextPageWithLayout = () => {
const activeLints = useMemo(() => {
return [...(data ?? [])]?.filter((x) => x.categories.includes('PERFORMANCE'))
- // eslint-disable-next-line react-hooks/exhaustive-deps
}, [data])
const currentTabFilters = (filters.find((filter) => filter.level === currentTab)?.filters ||
[]) as string[]
diff --git a/apps/studio/types/index.ts b/apps/studio/types/index.ts
index cacc37f912d..e53ca46b6e0 100644
--- a/apps/studio/types/index.ts
+++ b/apps/studio/types/index.ts
@@ -1,6 +1,14 @@
-export * from './base'
-export type * from './ui'
-export type * from './userContent'
+export {
+ ResponseError,
+ type Dictionary,
+ type Organization,
+ type Permission,
+ type ResponseFailure,
+ type Role,
+ type SupaResponse,
+} from './base'
+export type * from './form'
export type * from './next'
export { isNextPageWithLayout } from './next'
-export type * from './form'
+export type * from './ui'
+export type * from './userContent'
diff --git a/apps/ui-library/.eslintrc.cjs b/apps/ui-library/.eslintrc.cjs
deleted file mode 100644
index 4f1d845f8cf..00000000000
--- a/apps/ui-library/.eslintrc.cjs
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- extends: ['eslint-config-supabase/next'],
-}
diff --git a/apps/ui-library/eslint.config.cjs b/apps/ui-library/eslint.config.cjs
new file mode 100644
index 00000000000..fec3ac9b3ab
--- /dev/null
+++ b/apps/ui-library/eslint.config.cjs
@@ -0,0 +1,4 @@
+const { defineConfig } = require('eslint/config')
+const supabaseConfig = require('eslint-config-supabase/next')
+
+module.exports = defineConfig([supabaseConfig])
diff --git a/apps/ui-library/package.json b/apps/ui-library/package.json
index c398bbeeb9f..05c09a053f4 100644
--- a/apps/ui-library/package.json
+++ b/apps/ui-library/package.json
@@ -10,7 +10,7 @@
"build:registry": "rimraf -G public/r/* && tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-registry.mts && shadcn build public/r/registry.json && tsx scripts/clean-registry.ts",
"build:llms": "tsx --tsconfig ./tsconfig.scripts.json ./scripts/build-llms-txt.ts",
"start": "next start",
- "lint": "next lint",
+ "lint": "eslint .",
"lint:mdx": "supa-mdx-lint content --config ../../supa-mdx-lint.config.toml",
"content:build": "contentlayer2 build",
"clean": "rimraf node_modules .next .turbo",
diff --git a/apps/www/.eslintrc.js b/apps/www/.eslintrc.js
deleted file mode 100644
index d6f7ef0c053..00000000000
--- a/apps/www/.eslintrc.js
+++ /dev/null
@@ -1,9 +0,0 @@
-module.exports = {
- extends: ['eslint-config-supabase/next'],
- rules: {
- 'react-hooks/rules-of-hooks': 'warn',
- 'react/no-unescaped-entities': 'warn',
- 'react/display-name': 'warn',
- 'react/no-children-prop': 'warn',
- },
-}
diff --git a/apps/www/eslint.config.cjs b/apps/www/eslint.config.cjs
new file mode 100644
index 00000000000..8ebf71dad2a
--- /dev/null
+++ b/apps/www/eslint.config.cjs
@@ -0,0 +1,14 @@
+const { defineConfig } = require('eslint/config')
+const supabaseConfig = require('eslint-config-supabase/next')
+
+module.exports = defineConfig([
+ supabaseConfig,
+ {
+ rules: {
+ 'react-hooks/rules-of-hooks': 'warn',
+ 'react/no-unescaped-entities': 'warn',
+ 'react/display-name': 'warn',
+ 'react/no-children-prop': 'warn',
+ },
+ },
+])
diff --git a/apps/www/internals/generate-sitemap.mjs b/apps/www/internals/generate-sitemap.mjs
index d884aa295fc..f8231787875 100644
--- a/apps/www/internals/generate-sitemap.mjs
+++ b/apps/www/internals/generate-sitemap.mjs
@@ -220,9 +220,7 @@ async function generate() {
/**
* write sitemaps
*/
- // eslint-disable-next-line no-sync
writeFileSync('public/sitemap.xml', sitemapRouter)
- // eslint-disable-next-line no-sync
writeFileSync('public/sitemap_www.xml', formatted)
}
diff --git a/apps/www/package.json b/apps/www/package.json
index ad034c28b75..dc40a6c0c6b 100644
--- a/apps/www/package.json
+++ b/apps/www/package.json
@@ -9,7 +9,7 @@
"build": "pnpm run content:build && next build",
"export": "next export",
"start": "next start",
- "lint": "next lint",
+ "lint": "eslint .",
"clean": "rimraf node_modules",
"pretypecheck": "next typegen",
"typecheck": "pnpm run content:build && tsc --noEmit",
diff --git a/package.json b/package.json
index d8b192fe306..9e900a392da 100644
--- a/package.json
+++ b/package.json
@@ -48,7 +48,7 @@
"devDependencies": {
"@aws-sdk/client-secrets-manager": "^3.410.0",
"@types/node": "catalog:",
- "eslint": "^8.57.0",
+ "eslint": "^9.0.0",
"prettier": "3.2.4",
"prettier-plugin-sql-cst": "^0.11.0",
"rimraf": "^6.0.0",
diff --git a/packages/eslint-config-supabase/next.js b/packages/eslint-config-supabase/next.js
index f3f39c45b66..b19ed525481 100644
--- a/packages/eslint-config-supabase/next.js
+++ b/packages/eslint-config-supabase/next.js
@@ -1,16 +1,43 @@
-module.exports = {
- extends: ['prettier', 'next/core-web-vitals', 'eslint-config-turbo'],
- rules: {
- '@next/next/no-html-link-for-pages': 'off',
- 'react/jsx-key': 'off',
- 'no-restricted-exports': ['warn', { restrictDefaultExports: { direct: true } }],
+const { defineConfig } = require('eslint/config')
+const js = require('@eslint/js')
+const { FlatCompat } = require('@eslint/eslintrc')
+const prettierConfig = require('eslint-config-prettier/flat')
+const { default: turboConfig } = require('eslint-config-turbo/flat')
+const { off } = require('process')
+
+const compat = new FlatCompat({
+ baseDirectory: __dirname,
+ recommendedConfig: js.configs.recommended,
+ allConfig: js.configs.all,
+})
+
+module.exports = defineConfig([
+ // Global ignore for the .next folder
+ { ignores: ['.next', 'public'] },
+ turboConfig,
+ prettierConfig,
+ {
+ extends: compat.extends('next/core-web-vitals'),
+ linterOptions: {
+ reportUnusedDisableDirectives: 'warn',
+ },
+ rules: {
+ '@next/next/no-html-link-for-pages': 'off',
+ 'react/jsx-key': 'off',
+ },
},
- overrides: [
- {
- files: ['pages/**', 'app/**'],
- rules: {
- 'no-restricted-exports': 'off',
- },
+ {
+ // check for default exports in all files except app and pages folders.
+ ignores: ['pages/**.tsx', 'app/**.tsx'],
+ rules: {
+ 'no-restricted-exports': [
+ 'warn',
+ {
+ restrictDefaultExports: {
+ direct: true,
+ },
+ },
+ ],
},
- ],
-}
+ },
+])
diff --git a/packages/eslint-config-supabase/package.json b/packages/eslint-config-supabase/package.json
index e278f95c21c..5610d5edeef 100644
--- a/packages/eslint-config-supabase/package.json
+++ b/packages/eslint-config-supabase/package.json
@@ -8,11 +8,13 @@
"clean": "rimraf node_modules"
},
"dependencies": {
- "eslint-config-next": "15.3.1",
- "eslint-config-prettier": "^9.1.0",
- "eslint-config-turbo": "^2.0.4"
+ "eslint-config-next": "^15.5.0",
+ "eslint-config-prettier": "^10.0.0",
+ "eslint-config-turbo": "^2.5.0"
},
"devDependencies": {
+ "@eslint/eslintrc": "^3.0.0",
+ "@eslint/js": "^9.0.0",
"typescript": "catalog:"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2f8426a1e62..655a22e78d1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -68,8 +68,8 @@ importers:
specifier: 'catalog:'
version: 22.13.14
eslint:
- specifier: ^8.57.0
- version: 8.57.0([email protected])
+ specifier: ^9.0.0
prettier:
specifier: 3.2.4
version: 3.2.4
@@ -1200,7 +1200,7 @@ importers:
version: link:../../packages/eslint-config-supabase
eslint-plugin-barrel-files:
specifier: ^2.0.7
graphql-ws:
specifier: 5.14.1
version: 5.14.1([email protected])
@@ -1820,7 +1820,7 @@ importers:
version: 1.15.4
nuxt:
specifier: ^4.0.3
devDependencies:
shadcn:
specifier: ^3.0.0
@@ -2057,15 +2057,21 @@ importers:
packages/eslint-config-supabase:
dependencies:
eslint-config-next:
- specifier: 15.3.1
+ specifier: ^15.5.0
eslint-config-prettier:
- specifier: ^9.1.0
+ specifier: ^10.0.0
eslint-config-turbo:
- specifier: ^2.0.4
+ specifier: ^2.5.0
devDependencies:
+ '@eslint/eslintrc':
+ specifier: ^3.0.0
+ version: 3.3.1([email protected])
+ '@eslint/js':
+ specifier: ^9.0.0
+ version: 9.37.0
typescript:
specifier: 'catalog:'
version: 5.9.2
@@ -2121,7 +2127,7 @@ importers:
version: 8.11.11
'@vitest/coverage-v8':
specifier: ^3.0.9
npm-run-all:
specifier: ^4.1.5
version: 4.1.5
@@ -2357,7 +2363,7 @@ importers:
version: 15.5.7
'@vitest/coverage-v8':
specifier: ^3.0.9
common:
specifier: workspace:*
version: link:../common
@@ -3748,14 +3754,14 @@ packages:
cpu: [x64]
os: [win32]
- '@eslint-community/[email protected]':
- resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
- '@eslint-community/[email protected]':
- resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==}
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
@@ -3764,17 +3770,33 @@ packages:
resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==}
engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
- '@eslint-community/[email protected]':
- resolution: {integrity: sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==}
- engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-ENIdc4iLu0d93HeYirvKmrzshzofPw6VkZRKQGe9Nv46ZnWUzcF1xV01dcvEg/1wXUR61OmmlSfyeyO7EvjLxQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-WUFvV4WoIwW8Bv0KeKCIIEgdSiFOsulyN0xrMu+7z43q/hkOLXjvb5u7UC9jDxvRzcrbEmuZBX5yJZz1741jog==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-nmC8/totwobIiFcGkDza3GIKfAw1+hLiYVrh3I1nIomQ8PEr5cxg34jnkmGawul/ep52wGRAcyeDCNtWKSOj4Q==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-jaS+NJ+hximswBG6pjNX0uEJZkrT0zwpVi3BA3vX22aFGjJjmgSTSmPpZCRKmoBL5VY/M6p0xsSJx7rk7sy5gg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-sB5uyeq+dwCWyPi31B2gQlVlo+j5brPlWx4yZBrEaRo/nhdDE8Xke1gsGgtiBdaBTxuTkceLVuVt/pclrasb0A==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@exodus/[email protected]':
resolution: {integrity: sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw==}
@@ -4212,10 +4234,13 @@ packages:
peerDependencies:
react-hook-form: ^7.0.0
- '@humanwhocodes/[email protected]':
- resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==}
- engines: {node: '>=10.10.0'}
- deprecated: Use @eslint/config-array instead
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}
+ engines: {node: '>=18.18.0'}
'@humanwhocodes/[email protected]':
resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
@@ -4225,9 +4250,9 @@ packages:
resolution: {integrity: sha512-RE815I4arJFtt+FVeU1Tgp9/Xvecacji8w/V6XtXsWWH/wz/eNkNbhb+ny/+PlVZjV0rxQpRSQKNKE3lcktHEA==}
engines: {node: '>=10.10.0'}
- '@humanwhocodes/[email protected]':
- resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==}
- deprecated: Use @eslint/object-schema instead
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
+ engines: {node: '>=18.18'}
'@iconify/[email protected]':
resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}
@@ -4738,8 +4763,8 @@ packages:
resolution: {integrity: sha512-Qe06ew4zt12LeO6N7j8/nULSOe3fMXE4dM6xgpBQNvdzyK1sv5y4oAP3bq4LamrvGCZtmRYnW8URFCeX5nFgGg==}
- resolution: {integrity: sha512-oEs4dsfM6iyER3jTzMm4kDSbrQJq8wZw5fmT6fg2V3SMo+kgG+cShzLfEV20senZzv8VF+puNLheiGPlBGsv2A==}
+ resolution: {integrity: sha512-SR1vhXNNg16T4zffhJ4TS7Xn7eq4NfKfcOsRwea7RIAHrjRpI9ALYbamqIJqkAhowLlERffiwk0FMvTLNdnVtw==}
resolution: {integrity: sha512-dnpuJRfqqCPFfLDy2hIej41JAl424zk1JOgRd7jjWu2aTeX6oi0gXdcnMAK4lhf7Xl9zSkL2stzDc1YtlB1xyg==}
@@ -10303,10 +10328,6 @@ packages:
resolution: {integrity: sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==}
- engines: {node: '>= 0.4'}
-
resolution: {integrity: sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==}
engines: {node: '>= 0.4'}
@@ -12212,8 +12233,8 @@ packages:
resolution: {integrity: sha512-FVVO4DNEPub7/VWGERJytT+tllOP2SRt8rdlcneHNWXSECMU7Aj1nXwGfhhsL3h1aZGJbYokIe27wyN7CJpAfA==}
engines: {node: '>= 10'}
- resolution: {integrity: sha512-GnmyVd9TE/Ihe3RrvcafFhXErErtr2jS0JDeCSp3vWvy86AXwHsRBt0E3MqP/m8ACS1ivcsi5uaqjbhsG18qKw==}
+ resolution: {integrity: sha512-BzgVVuT3kfJes8i2GHenC1SRJ+W3BTML11lAOYFOOPzrk2xp66jBOAGEFRw+3LkYCln5UzvFsLhojrshb5Zfaw==}
peerDependencies:
eslint: ^7.23.0 || ^8.0.0 || ^9.0.0
typescript: '>=3.3.1'
@@ -12221,16 +12242,17 @@ packages:
typescript:
optional: true
- resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==}
+ resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==}
hasBin: true
peerDependencies:
eslint: '>=7.0.0'
- resolution: {integrity: sha512-zGvU+bxoNWVvSl0prGItrnH9FgeNzKEAjRmv8ruqql1psI37T8IoLF/XeOzT3CzzYzJxuI3wW1yb2agDFYQdHQ==}
+ resolution: {integrity: sha512-wzxmN7dJNFGDwOvR/4j8U2iaIH/ruYez8qg/sCKrezJ3+ljbFMvJLmgKKt/1mDuyU9wj5aZqO6VijP3QH169FA==}
peerDependencies:
eslint: '>6.6.0'
+ turbo: '>2.0.0'
resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}
@@ -12263,27 +12285,6 @@ packages:
eslint-import-resolver-webpack:
optional: true
- resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==}
- engines: {node: '>=4'}
- peerDependencies:
- '@typescript-eslint/parser': '*'
- eslint: '*'
- eslint-import-resolver-node: '*'
- eslint-import-resolver-typescript: '*'
- eslint-import-resolver-webpack: '*'
- peerDependenciesMeta:
- '@typescript-eslint/parser':
- optional: true
- eslint:
- optional: true
- eslint-import-resolver-node:
- optional: true
- eslint-import-resolver-typescript:
- optional: true
- eslint-import-resolver-webpack:
- optional: true
-
resolution: {integrity: sha512-t0q23FIpvHDTtnORW+bDJziGsal5uh9RJTJ1fyH8drd4lICOoXhJ5pLMUZ5C0VQei6dNmwTzzoTRgMkO9JgHEQ==}
peerDependencies:
@@ -12318,18 +12319,19 @@ packages:
peerDependencies:
eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7
- resolution: {integrity: sha512-Ozn//vTXJeqIEvEkThM2vuuldMckPqAne7vg/S3GxF+BBY516cjdp7+dYpCU5Q0083hVm638c8542ubccNE+8w==}
+ resolution: {integrity: sha512-bVjx4vTH0oTKIyQ7EGFAXnuhZMrKIfu17qlex/dps7eScPnGQLJ3r1/nFq80l8xA+8oYjsSirSQ2tXOKbz3kEw==}
peerDependencies:
eslint: '>6.6.0'
+ turbo: '>2.0.0'
resolution: {integrity: sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==}
engines: {node: '>=8.0.0'}
- resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
@@ -12339,19 +12341,23 @@ packages:
resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.
+ resolution: {integrity: sha512-XyLmROnACWqSxiGYArdef1fItQd47weqB7iwtfr9JHwRrqIXZdcFMvvEcL9xHCmL0SNsOvF0c42lWyM1U5dgig==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
hasBin: true
+ peerDependencies:
+ jiti: '*'
+ peerDependenciesMeta:
+ jiti:
+ optional: true
resolution: {integrity: sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==}
engines: {node: '>=0.10'}
- resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==}
- engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
@@ -12670,9 +12676,9 @@ packages:
resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}
- engines: {node: ^10.12.0 || >=12.0.0}
+ resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
+ engines: {node: '>=16.0.0'}
resolution: {integrity: sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA==}
@@ -12741,9 +12747,9 @@ packages:
react-dom:
optional: true
- resolution: {integrity: sha512-OHx4Qwrrt0E4jEIcI5/Xb+f+QmJYNj2rrK8wiIdQOIrB9WrrJL8cjZvXdXuBTkkEwEqLycb5BeZDV1o2i9bTew==}
- engines: {node: '>=12.0.0'}
+ resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
+ engines: {node: '>=16'}
resolution: {integrity: sha512-AiwGJM8YcNOaobumgtng+6NHuOqC3A7MixFeDafM3X9cIUM+xUXoS5Vfgf+OihAYe20fxqNM9yPBXJzRtZ/4eA==}
@@ -13050,9 +13056,9 @@ packages:
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
engines: {node: '>=4'}
- resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==}
- engines: {node: '>=8'}
+ resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
+ engines: {node: '>=18'}
resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==}
@@ -13812,10 +13818,6 @@ packages:
resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==}
engines: {node: '>=12'}
@@ -14225,8 +14227,8 @@ packages:
resolution: {integrity: sha512-XCHRdUw4lf3SKBaJe4EvgqIuWwkPSo9XoeO8GjQW94Bp7TWv9hNhzZjZ+OH9yf1UmLygb7DIT5GSFQiyt16zYg==}
hasBin: true
- resolution: {integrity: sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==}
+ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
resolution: {integrity: sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==}
@@ -15718,10 +15720,6 @@ packages:
resolution: {integrity: sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==}
engines: {node: '>=0.10.0'}
- resolution: {integrity: sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ==}
- engines: {node: '>= 0.4'}
-
resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==}
engines: {node: '>= 0.4'}
@@ -18457,9 +18455,6 @@ packages:
resolution: {integrity: sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==}
- resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}
-
resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==}
engines: {node: '>=0.8'}
@@ -18804,10 +18799,6 @@ packages:
resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
engines: {node: '>= 0.8.0'}
- resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==}
engines: {node: '>=10'}
@@ -22283,26 +22274,40 @@ snapshots:
'@esbuild/[email protected]':
optional: true
dependencies:
- eslint: 8.57.0([email protected])
eslint-visitor-keys: 3.4.3
dependencies:
- eslint: 8.57.0([email protected])
eslint-visitor-keys: 3.4.3
'@eslint-community/[email protected]': {}
- '@eslint-community/[email protected]': {}
+ dependencies:
+ '@eslint/object-schema': 2.1.6
+ debug: 4.4.3([email protected])
+ minimatch: 3.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.16.0
+ '@eslint/[email protected]':
+ dependencies:
+ '@types/json-schema': 7.0.15
+
dependencies:
ajv: 6.12.6
debug: 4.4.3([email protected])
- espree: 9.6.1
- globals: 13.24.0
+ espree: 10.4.0
+ globals: 14.0.0
ignore: 5.3.2
import-fresh: 3.3.0
js-yaml: 4.1.0
@@ -22311,7 +22316,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@eslint/[email protected]': {}
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.16.0
+ levn: 0.4.1
'@exodus/[email protected]': {}
@@ -23079,19 +23091,18 @@ snapshots:
dependencies:
react-hook-form: 7.47.0([email protected])
+ '@humanfs/[email protected]': {}
+
+ '@humanfs/[email protected]':
dependencies:
- '@humanwhocodes/object-schema': 2.0.2
- debug: 4.4.3([email protected])
- minimatch: 3.1.2
- transitivePeerDependencies:
- - supports-color
+ '@humanfs/core': 0.19.1
+ '@humanwhocodes/retry': 0.4.3
'@humanwhocodes/[email protected]': {}
'@humanwhocodes/[email protected]': {}
- '@humanwhocodes/[email protected]': {}
+ '@humanwhocodes/[email protected]': {}
'@iconify/[email protected]': {}
@@ -23766,7 +23777,7 @@ snapshots:
'@next/[email protected]': {}
dependencies:
fast-glob: 3.3.1
@@ -24055,7 +24066,7 @@ snapshots:
transitivePeerDependencies:
- magicast
dependencies:
'@nuxt/kit': 4.1.2([email protected])
'@rollup/plugin-replace': 6.0.2([email protected])
@@ -24084,7 +24095,7 @@ snapshots:
unenv: 2.0.0-rc.21
vue: 3.5.21([email protected])
vue-bundle-renderer: 2.1.2
transitivePeerDependencies:
@@ -29939,15 +29950,15 @@ snapshots:
'@types/[email protected]': {}
dependencies:
'@eslint-community/regexpp': 4.12.1
'@typescript-eslint/scope-manager': 8.34.1
- '@typescript-eslint/type-utils': 8.34.1([email protected]([email protected]))([email protected])([email protected])
'@typescript-eslint/visitor-keys': 8.34.1
- eslint: 8.57.0([email protected])
graphemer: 1.4.0
ignore: 7.0.5
natural-compare: 1.4.0
@@ -29956,14 +29967,14 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/scope-manager': 7.2.0
'@typescript-eslint/types': 7.2.0
'@typescript-eslint/typescript-estree': 7.2.0([email protected])([email protected])
'@typescript-eslint/visitor-keys': 7.2.0
debug: 4.4.3([email protected])
- eslint: 8.57.0([email protected])
optionalDependencies:
typescript: 5.9.2
transitivePeerDependencies:
@@ -29992,12 +30003,12 @@ snapshots:
dependencies:
typescript: 5.9.2
dependencies:
'@typescript-eslint/typescript-estree': 8.34.1([email protected])([email protected])
debug: 4.4.3([email protected])
- eslint: 8.57.0([email protected])
ts-api-utils: 2.1.0([email protected])
typescript: 5.9.2
transitivePeerDependencies:
@@ -30038,13 +30049,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- '@eslint-community/eslint-utils': 4.7.0([email protected]([email protected]))
+ '@eslint-community/eslint-utils': 4.7.0([email protected]([email protected])([email protected]))
'@typescript-eslint/scope-manager': 8.34.1
'@typescript-eslint/types': 8.34.1
'@typescript-eslint/typescript-estree': 8.34.1([email protected])([email protected])
- eslint: 8.57.0([email protected])
typescript: 5.9.2
transitivePeerDependencies:
- supports-color
@@ -30204,24 +30215,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@ampproject/remapping': 2.3.0
- '@bcoe/v8-coverage': 1.0.2
- debug: 4.4.3([email protected])
- istanbul-lib-coverage: 3.2.2
- istanbul-lib-report: 3.0.1
- istanbul-lib-source-maps: 5.0.6([email protected])
- istanbul-reports: 3.1.7
- magic-string: 0.30.19
- magicast: 0.3.5
- std-env: 3.9.0
- test-exclude: 7.0.1
- tinyrainbow: 2.0.0
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@ampproject/remapping': 2.3.0
@@ -30236,7 +30229,7 @@ snapshots:
std-env: 3.9.0
test-exclude: 7.0.1
tinyrainbow: 2.0.0
transitivePeerDependencies:
- supports-color
@@ -30315,7 +30308,7 @@ snapshots:
sirv: 3.0.0
tinyglobby: 0.2.14
tinyrainbow: 2.0.0
'@vitest/[email protected]':
dependencies:
@@ -30874,13 +30867,6 @@ snapshots:
es-abstract: 1.24.0
es-shim-unscopables: 1.0.2
- dependencies:
- call-bind: 1.0.8
- define-properties: 1.2.1
- es-abstract: 1.24.0
- es-shim-unscopables: 1.0.2
-
dependencies:
call-bind: 1.0.8
@@ -32815,33 +32801,34 @@ snapshots:
eslint-barrel-file-utils-win32-ia32-msvc: 0.0.10
eslint-barrel-file-utils-win32-x64-msvc: 0.0.10
dependencies:
- '@next/eslint-plugin-next': 15.3.1
+ '@next/eslint-plugin-next': 15.5.4
'@rushstack/eslint-patch': 1.10.3
- eslint: 8.57.0([email protected])
eslint-import-resolver-node: 0.3.9([email protected])
- eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
- eslint-plugin-react: 7.37.5([email protected]([email protected]))
- eslint-plugin-react-hooks: 5.2.0([email protected]([email protected]))
+ eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected])([email protected]))
+ eslint-plugin-react-hooks: 5.2.0([email protected]([email protected])([email protected]))
optionalDependencies:
typescript: 5.9.2
transitivePeerDependencies:
- eslint-import-resolver-webpack
- supports-color
dependencies:
- eslint: 8.57.0([email protected])
dependencies:
- eslint: 8.57.0([email protected])
- eslint-plugin-turbo: 2.0.4([email protected]([email protected]))
+ turbo: 2.3.3
dependencies:
@@ -32851,13 +32838,13 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
debug: 4.4.3([email protected])
enhanced-resolve: 5.18.1
- eslint: 8.57.0([email protected])
fast-glob: 3.3.3
get-tsconfig: 4.10.0
is-core-module: 2.16.1
@@ -32868,74 +32855,63 @@ snapshots:
- eslint-import-resolver-webpack
- supports-color
dependencies:
debug: 3.2.7([email protected])
optionalDependencies:
- eslint: 8.57.0([email protected])
eslint-import-resolver-node: 0.3.9([email protected])
transitivePeerDependencies:
- supports-color
dependencies:
- debug: 3.2.7([email protected])
- optionalDependencies:
- eslint: 8.57.0([email protected])
- eslint-import-resolver-node: 0.3.9([email protected])
- transitivePeerDependencies:
- - supports-color
-
- dependencies:
- eslint: 8.57.0([email protected])
eslint-barrel-file-utils: 0.0.10
requireindex: 1.2.0
dependencies:
'@rtsao/scc': 1.1.0
array-includes: 3.1.8
array.prototype.findlastindex: 1.2.5
array.prototype.flat: 1.3.2
- array.prototype.flatmap: 1.3.2
+ array.prototype.flatmap: 1.3.3
debug: 3.2.7([email protected])
doctrine: 2.1.0
- eslint: 8.57.0([email protected])
eslint-import-resolver-node: 0.3.9([email protected])
hasown: 2.0.2
is-core-module: 2.16.1
is-glob: 4.0.3
minimatch: 3.1.2
object.fromentries: 2.0.8
object.groupby: 1.0.3
- object.values: 1.2.0
+ object.values: 1.2.1
semver: 6.3.1
string.prototype.trimend: 1.0.9
tsconfig-paths: 3.15.0
optionalDependencies:
transitivePeerDependencies:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
- supports-color
dependencies:
aria-query: 5.3.2
array-includes: 3.1.8
- array.prototype.flatmap: 1.3.2
+ array.prototype.flatmap: 1.3.3
ast-types-flow: 0.0.8
axe-core: 4.10.3
axobject-query: 4.1.0
damerau-levenshtein: 1.0.8
emoji-regex: 9.2.2
- eslint: 8.57.0([email protected])
hasown: 2.0.2
jsx-ast-utils: 3.3.5
language-tags: 1.0.9
@@ -32944,11 +32920,11 @@ snapshots:
safe-regex-test: 1.1.0
string.prototype.includes: 2.0.1
dependencies:
- eslint: 8.57.0([email protected])
dependencies:
array-includes: 3.1.8
array.prototype.findlast: 1.2.5
@@ -32956,7 +32932,7 @@ snapshots:
array.prototype.tosorted: 1.1.4
doctrine: 2.1.0
es-iterator-helpers: 1.2.1
- eslint: 8.57.0([email protected])
estraverse: 5.3.0
hasown: 2.0.2
jsx-ast-utils: 3.3.5
@@ -32970,17 +32946,18 @@ snapshots:
string.prototype.matchall: 4.0.12
string.prototype.repeat: 1.0.0
dependencies:
dotenv: 16.0.3
- eslint: 8.57.0([email protected])
+ turbo: 2.3.3
dependencies:
esrecurse: 4.3.0
estraverse: 4.3.0
dependencies:
esrecurse: 4.3.0
estraverse: 5.3.0
@@ -32989,46 +32966,45 @@ snapshots:
dependencies:
- '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))
- '@eslint-community/regexpp': 4.9.1
- '@eslint/eslintrc': 2.1.4([email protected])
- '@eslint/js': 8.57.0
- '@humanwhocodes/config-array': 0.11.14([email protected])
+ '@eslint-community/eslint-utils': 4.9.0([email protected]([email protected])([email protected]))
+ '@eslint-community/regexpp': 4.12.1
+ '@eslint/config-array': 0.21.0([email protected])
+ '@eslint/config-helpers': 0.4.0
+ '@eslint/core': 0.16.0
+ '@eslint/eslintrc': 3.3.1([email protected])
+ '@eslint/js': 9.37.0
+ '@eslint/plugin-kit': 0.4.0
+ '@humanfs/node': 0.16.7
'@humanwhocodes/module-importer': 1.0.1
- '@nodelib/fs.walk': 1.2.8
- '@ungap/structured-clone': 1.2.0
+ '@humanwhocodes/retry': 0.4.3
+ '@types/estree': 1.0.8
+ '@types/json-schema': 7.0.15
ajv: 6.12.6
chalk: 4.1.2
cross-spawn: 7.0.6
- debug: 4.3.7([email protected])
- doctrine: 3.0.0
+ debug: 4.4.3([email protected])
escape-string-regexp: 4.0.0
- eslint-scope: 7.2.2
- eslint-visitor-keys: 3.4.3
- espree: 9.6.1
+ eslint-scope: 8.4.0
+ eslint-visitor-keys: 4.2.1
+ espree: 10.4.0
esquery: 1.5.0
esutils: 2.0.3
fast-deep-equal: 3.1.3
- file-entry-cache: 6.0.1
+ file-entry-cache: 8.0.0
find-up: 5.0.0
glob-parent: 6.0.2
- globals: 13.24.0
- graphemer: 1.4.0
- ignore: 5.2.4
+ ignore: 5.3.2
imurmurhash: 0.1.4
is-glob: 4.0.3
- is-path-inside: 3.0.3
- js-yaml: 4.1.0
json-stable-stringify-without-jsonify: 1.0.1
- levn: 0.4.1
lodash.merge: 4.6.2
minimatch: 3.1.2
natural-compare: 1.4.0
optionator: 0.9.3
- strip-ansi: 6.0.1
- text-table: 0.2.0
+ optionalDependencies:
+ jiti: 2.5.1
transitivePeerDependencies:
- supports-color
@@ -33039,11 +33015,11 @@ snapshots:
event-emitter: 0.3.5
type: 2.7.3
dependencies:
acorn: 8.15.0
acorn-jsx: 5.3.2([email protected])
- eslint-visitor-keys: 3.4.3
+ eslint-visitor-keys: 4.2.1
@@ -33432,9 +33408,9 @@ snapshots:
dependencies:
is-unicode-supported: 2.1.0
dependencies:
- flat-cache: 3.1.0
+ flat-cache: 4.0.1
@@ -33512,11 +33488,10 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
flatted: 3.3.2
- keyv: 4.5.3
- rimraf: 3.0.2
+ keyv: 4.5.4
@@ -33858,9 +33833,7 @@ snapshots:
- dependencies:
- type-fest: 0.20.2
@@ -34795,8 +34768,6 @@ snapshots:
-
@@ -35186,7 +35157,7 @@ snapshots:
array-includes: 3.1.8
array.prototype.flat: 1.3.2
object.assign: 4.1.7
- object.values: 1.2.0
+ object.values: 1.2.1
dependencies:
@@ -35196,7 +35167,7 @@ snapshots:
dependencies:
commander: 8.3.0
dependencies:
json-buffer: 3.0.1
@@ -37448,7 +37419,7 @@ snapshots:
dependencies:
'@nuxt/cli': 3.28.0([email protected])
'@nuxt/devalue': 2.0.2
@@ -37456,7 +37427,7 @@ snapshots:
'@nuxt/kit': 4.1.2([email protected])
'@nuxt/schema': 4.1.2
'@nuxt/telemetry': 2.6.6([email protected])
'@unhead/vue': 2.0.14([email protected]([email protected]))
'@vue/shared': 3.5.21
c12: 3.3.0([email protected])
@@ -37658,12 +37629,6 @@ snapshots:
dependencies:
isobject: 3.0.1
- dependencies:
- call-bind: 1.0.8
- define-properties: 1.2.1
- es-object-atoms: 1.1.1
-
dependencies:
call-bind: 1.0.8
@@ -41064,8 +41029,6 @@ snapshots:
dependencies:
b4a: 1.6.7
-
dependencies:
thenify: 3.3.1
@@ -41379,8 +41342,6 @@ snapshots:
dependencies:
prelude-ls: 1.2.1
-
@@ -42223,7 +42184,7 @@ snapshots:
- tsx
- yaml
dependencies:
'@babel/code-frame': 7.27.1
chokidar: 4.0.3
@@ -42236,7 +42197,7 @@ snapshots:
vscode-uri: 3.1.0
optionalDependencies:
- eslint: 8.57.0([email protected])
typescript: 5.9.2
diff --git a/turbo.json b/turbo.json
index 27e175cb07e..c6d76db1c1f 100644
--- a/turbo.json
+++ b/turbo.json
@@ -67,8 +67,12 @@
"NEXT_PUBLIC_VERCEL_BRANCH_URL",
"NEXT_PUBLIC_GOOGLE_MAPS_KEY",
"NEXT_RUNTIME",
+ "NIMBUS_PROD_PROJECTS_URL",
+ "NIMBUS_PROD_PROJECTS_URL_WS",
"NODE_ENV",
"SUPABASE_URL",
+ "VERCEL",
+ "VERCEL_ENV",
// These envs are used in the packages
"NEXT_PUBLIC_STORAGE_KEY",
"NEXT_PUBLIC_AUTH_DEBUG_KEY",
@@ -123,6 +127,7 @@
"dependsOn": ["^build"],
"env": [
"ANALYZE",
+ "CI",
"CF_ACCESS_CLIENT_ID",
"CF_ACCESS_CLIENT_SECRET",
"CMS_API_KEY",
@@ -145,6 +150,9 @@
"NEXT_PUBLIC_SENTRY_DSN",
"NEXT_PUBLIC_SURVEY_SUPABASE_URL",
"NEXT_PUBLIC_SURVEY_SUPABASE_ANON_KEY",
+ "VERCEL",
+ "VERCEL_ENV",
+ "VERCEL_GIT_COMMIT_SHA",
// These envs are used in the packages
"NEXT_PUBLIC_STORAGE_KEY",
"NEXT_PUBLIC_AUTH_DEBUG_KEY",