From f7e60bf324d530e91bee9a60035c998910d452e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Tue, 30 Jan 2024 10:54:02 +0800 Subject: [PATCH] chore: upgrade prettier/eslint + autofix (#20785) --- .github/workflows/autofix_linters.yml | 58 + .github/workflows/prettier.yml | 6 +- .../app/[threadId]/[runId]/UserChat.tsx | 4 +- apps/database-new/app/globals.css | 27 +- apps/database-new/package.json | 2 +- apps/database-new/tsconfig.json | 10 +- apps/database-new/types/supabase.ts | 6 +- .../ProjectConfigVariables.ComboBox.tsx | 4 +- .../ProjectConfigVariables.tsx | 56 +- .../components/RealtimeLimitsEstimater.tsx | 4 +- .../reference/RefFunctionSection.tsx | 16 +- apps/docs/generator/legacy.ts | 8 +- apps/docs/generator/tsconfig.json | 6 +- apps/docs/internals/generate-sitemap.mjs | 2 +- apps/docs/internals/tsconfig.json | 6 +- apps/docs/layouts/SiteLayout.tsx | 4 +- .../guides/database/extensions/uuid-ossp.mdx | 1 - .../docs/pages/guides/database/sql-to-api.mdx | 4 +- .../tutorials/with-angular.mdx | 10 +- .../tutorials/with-ionic-angular.mdx | 20 +- .../getting-started/tutorials/with-svelte.mdx | 20 +- apps/docs/scripts/search/sources/base.ts | 10 +- .../search/sources/github-discussion.ts | 11 +- apps/docs/scripts/search/sources/markdown.ts | 11 +- .../search/sources/partner-integrations.ts | 11 +- apps/docs/scripts/tsconfig.json | 6 +- apps/docs/spec/parser/package.json | 2 +- apps/docs/styles/Home.module.css | 4 +- apps/docs/tsconfig.json | 8 +- apps/docs/types/api.d.ts | 6 +- .../grid/components/common/Hooks.tsx | 12 +- .../grid/components/common/Shortcuts.tsx | 4 +- .../grid/components/header/Header.tsx | 8 +- .../components/header/filter/FilterRow.tsx | 4 +- .../components/grid/utils/gridColumns.tsx | 4 +- .../interfaces/Account/AuditLogs.tsx | 8 +- .../Auth/AuthProvidersForm/ProviderForm.tsx | 4 +- .../Auth/Policies/Policies.utils.ts | 4 +- .../Extensions/EnableExtensionModal.tsx | 4 +- .../Database/Hooks/HTTPRequestFields.tsx | 4 +- .../interfaces/Database/Roles/RolesList.tsx | 8 +- .../Home/NewProjectPanel/APIKeys.tsx | 8 +- .../Home/ProjectList/ProjectCardStatus.tsx | 4 +- .../interfaces/Home/ServiceStatus.tsx | 4 +- .../Organization/AuditLogs/AuditLogs.tsx | 8 +- .../BillingBreakdown/BillingMetric.tsx | 8 +- .../BillingBreakdown/UpcomingInvoice.tsx | 12 +- .../ProjectUpdateDisabledTooltip.tsx | 4 +- .../Subscription/PlanUpdateSidePanel.tsx | 8 +- .../GeneralSettings/GeneralSettings.tsx | 4 +- .../Usage/UsageSection/AttributeUsage.tsx | 10 +- .../ProjectAPIDocs/Content/Bucket.tsx | 8 +- .../ProjectAPIDocs.constants.ts | 8 +- .../interfaces/Reports/ReportFilterBar.tsx | 2 +- .../Reports/renderers/ApiRenderers.tsx | 4 +- .../interfaces/Settings/API/JWTSettings.tsx | 8 +- .../interfaces/Settings/API/ServiceList.tsx | 4 +- .../Addons/ComputeInstanceSidePanel.tsx | 4 +- .../Settings/Addons/CustomDomainSidePanel.tsx | 4 +- .../Settings/Addons/IPv4SidePanel.tsx | 4 +- .../Settings/Addons/PITRSidePanel.tsx | 8 +- .../DatabaseSettings/ResetDbPassword.tsx | 4 +- .../Settings/Database/SSLConfiguration.tsx | 4 +- .../Settings/Database/UsePoolerCheckbox.tsx | 4 +- .../Infrastructure/PauseProjectButton.tsx | 12 +- .../Infrastructure/RestartServerButton.tsx | 4 +- .../Infrastructure/InfrastructureActivity.tsx | 4 +- .../InfrastructureConfiguration/MapView.tsx | 20 +- .../VercelIntegration/VercelSection.tsx | 4 +- .../interfaces/Settings/Logs/LogTable.tsx | 4 +- .../interfaces/Storage/EditBucketModal.tsx | 8 +- .../interfaces/Support/SupportForm.tsx | 14 +- .../SidePanelEditor/RowEditor/InputField.tsx | 16 +- .../DrilldownViewer/DrilldownPane.tsx | 4 +- .../RowEditor/RowEditor.utils.ts | 20 +- .../SidePanelEditor/SidePanelEditor.tsx | 10 +- .../SidePanelEditor/SidePanelEditor.utils.ts | 16 +- .../SpreadsheetImportPreview.tsx | 4 +- .../TableGridEditor/TableDefinition.tsx | 4 +- .../TableGridEditor/TableGridEditor.tsx | 2 +- .../GithubRepositorySelection.tsx | 4 +- .../AppLayout/OrganizationDropdown.tsx | 4 +- .../NotificationRow.tsx | 4 +- .../NotificationsPopover.tsx | 16 +- .../layouts/ProjectLayout/ProjectLayout.tsx | 12 +- .../UpgradingState/UpgradingState.tsx | 12 +- .../to-be-cleaned/Charts/ChartHandler.tsx | 12 +- .../to-be-cleaned/Charts/ChartRenderer.tsx | 4 +- .../StorageExplorer/ConfirmDeleteModal.tsx | 8 +- .../StorageExplorer/FileExplorerRow.tsx | 8 +- .../StorageExplorer/MoveItemsModal.tsx | 4 +- .../StorageSettings/StorageSettings.tsx | 5 +- .../components/ui/Charts/Charts.utils.tsx | 34 +- .../components/ui/Dialogs/ConfirmDialog.tsx | 4 +- .../components/ui/MultiSelect/index.tsx | 4 +- .../ui/ProjectSettings/DisplayApiSettings.tsx | 8 +- .../ProjectSettings/DisplayConfigSettings.tsx | 4 +- .../ResourceExhaustionWarningBanner.tsx | 12 +- apps/studio/data/api.d.ts | 6 +- .../data/database/entity-definitions-query.ts | 2 +- .../database/foreign-key-constraints-query.ts | 2 +- ...ganization-billing-subscription-preview.ts | 2 +- ...rganization-join-token-validation-query.ts | 2 +- ...mfa-authenticator-assurance-level-query.ts | 2 +- apps/studio/hooks/deprecated.ts | 12 +- apps/studio/lib/helpers.ts | 4 +- apps/studio/package.json | 4 +- .../[ref]/reports/query-performance.tsx | 8 +- apps/studio/pages/sign-in-fly-tos.tsx | 4 +- apps/studio/pages/support/new.tsx | 4 +- apps/studio/pages/vercel/integrate.tsx | 4 +- apps/studio/stores/pgmeta/TableStore.ts | 13 +- apps/studio/tsconfig.json | 10 +- apps/studio/types/userContent.ts | 2 +- apps/www/_blog/2022-03-08-postgres-audit.mdx | 22 +- ...trello-board-with-supabase-and-angular.mdx | 5 +- ...-11-08-authentication-in-ionic-angular.mdx | 6 +- ...-queries-with-postgis-in-ionic-angular.mdx | 10 +- ...03-postgres-dynamic-table-partitioning.mdx | 20 +- apps/www/components/Blog/BlogFilters.tsx | 4 +- apps/www/components/Blog/BlogListItem.tsx | 4 +- apps/www/components/Charts/PGCharts.tsx | 4 +- .../components/CodeBlock/CodeBlock.module.css | 4 +- apps/www/components/CodeBlock/CodeBlock.tsx | 4 +- apps/www/components/Footer/index.tsx | 4 +- .../LaunchWeek/7/LaunchSection/index.tsx | 4 +- .../LaunchWeek/7/Releases/index.tsx | 4 +- .../LaunchWeek/7/Ticket/form.module.css | 8 +- .../7/Ticket/ticket-image.module.css | 22 +- .../7/Ticket/ticket-visual.module.css | 4 +- .../LaunchWeek/7/Ticket/ticket.module.css | 11 +- .../LaunchWeek/8/Ticket/form.module.css | 8 +- .../8/Ticket/ticket-visual.module.css | 3 +- .../LaunchWeek/8/Ticket/ticket.module.css | 22 +- apps/www/components/OpenSource/Repos.tsx | 4 +- apps/www/internals/generate-sitemap.mjs | 3 +- apps/www/lib/constants.ts | 4 +- apps/www/lib/database.types.ts | 2 +- apps/www/pages/customers/customers.module.css | 7 +- .../pages/launch-week/tickets/[username].tsx | 4 +- apps/www/public/css/fonts.css | 27 +- apps/www/styles/index.css | 6 +- .../functions/hubspot-notification/index.ts | 8 +- apps/www/tsconfig.json | 10 +- package-lock.json | 1182 ++++++++++++----- package.json | 6 +- packages/config/package.json | 6 +- tests/package.json | 6 +- 148 files changed, 1511 insertions(+), 866 deletions(-) create mode 100644 .github/workflows/autofix_linters.yml diff --git a/.github/workflows/autofix_linters.yml b/.github/workflows/autofix_linters.yml new file mode 100644 index 0000000000..ca8882d7e0 --- /dev/null +++ b/.github/workflows/autofix_linters.yml @@ -0,0 +1,58 @@ +name: Autofix Linting Checks + +on: + pull_request: + types: + - labeled + +# Cancel old builds on new commit for same workflow + branch/PR +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + autofix: + runs-on: ubuntu-latest + permissions: + contents: write + if: ${{ github.event_name == 'pull_request' && (github.event.label.name == 'autofix') }} + steps: + - name: Calculate number of commits + run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" + + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + sparse-checkout: apps + fetch-depth: ${{ env.PR_FETCH_DEPTH }} + + - uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + + # Installing all dependencies takes up to three minutes, hacking around to only installing prettier+deps + - name: Install required dependencies + run: | + rm package.json + rm package-lock.json + npm i prettier@4.0.0-alpha.8 prettier-plugin-sql-cst + + - name: Run Prettier in fix mode + run: | + npx prettier --write 'apps/**/*.{js,jsx,ts,tsx,css,md,mdx,json}' + + - name: Commit changes and push to existing branch + run: | + git checkout -- package.json + git checkout -- package-lock.json + git config --global user.name 'github-tidy-bot' + git config --global user.email 'github-tidy-bot@supabase.com' + if [[ `git status --porcelain` ]]; then + echo "[bot] Changes detected, committing." + + echo "[bot] Running in non-squash mode." + git commit -am "ci: Autofix updates from GitHub workflow" + git push + else + echo "[bot] No changes detected, nothing to commit." + fi diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 379248ed60..cc2d29c565 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -27,7 +27,7 @@ jobs: run: | rm package.json rm package-lock.json - npm i prettier@2 prettier-plugin-sql-cst + npm i prettier@4.0.0-alpha.8 prettier-plugin-sql-cst - name: Run prettier run: |- npx prettier -c 'apps/**/*.{js,jsx,ts,tsx,css,md,mdx,json}' @@ -50,7 +50,7 @@ jobs: run: | rm package.json rm package-lock.json - npm i prettier@2 prettier-plugin-sql-cst + npm i prettier@4.0.0-alpha.8 prettier-plugin-sql-cst - name: Run prettier run: |- npx prettier -c 'i18n/**/*.{js,jsx,ts,tsx,css,md,mdx,json}' @@ -68,7 +68,7 @@ jobs: run: | rm package.json rm package-lock.json - npm i prettier@2 prettier-plugin-sql-cst + npm i prettier@4.0.0-alpha.8 prettier-plugin-sql-cst - name: Run prettier run: |- # Check mdx files which contain sql code blocks diff --git a/apps/database-new/app/[threadId]/[runId]/UserChat.tsx b/apps/database-new/app/[threadId]/[runId]/UserChat.tsx index 8abc0683a6..f1457b55ff 100644 --- a/apps/database-new/app/[threadId]/[runId]/UserChat.tsx +++ b/apps/database-new/app/[threadId]/[runId]/UserChat.tsx @@ -138,8 +138,8 @@ const UserChat = ({ message, isLatest, times, run }: UserChatProps) => { {replyDuration !== undefined ? ` with ${replyDuration}s response` : isLoading - ? ', generating response...' - : ''} + ? ', generating response...' + : ''}

)} diff --git a/apps/database-new/app/globals.css b/apps/database-new/app/globals.css index bbe375023c..11c393d6b2 100644 --- a/apps/database-new/app/globals.css +++ b/apps/database-new/app/globals.css @@ -8,56 +8,64 @@ @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Book.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Book.woff2) format('woff2'), url(/fonts/custom/CustomFont-Book.woff) format('woff'); font-weight: 400; font-style: normal; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-BookItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-BookItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-BookItalic.woff) format('woff'); font-weight: 400; font-style: italic; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Medium.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Medium.woff2) format('woff2'), url(/fonts/custom/CustomFont-Medium.woff) format('woff'); font-weight: 500; font-style: normal; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-MediumItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-MediumItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-MediumItalic.woff) format('woff'); font-weight: 500; font-style: italic; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Bold.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Bold.woff2) format('woff2'), url(/fonts/custom/CustomFont-Bold.woff) format('woff'); font-weight: 700; font-style: 600; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-BoldItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-BoldItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-BoldItalic.woff) format('woff'); font-style: 600; font-style: italic; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Black.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Black.woff2) format('woff2'), url(/fonts/custom/CustomFont-Black.woff) format('woff'); font-weight: 800; font-style: normal; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-BlackItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-BlackItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-BlackItalic.woff) format('woff'); font-weight: 800; font-style: italic; @@ -66,7 +74,8 @@ @font-face { font-family: 'source code pro'; src: url('/fonts/source-code-pro/SourceCodePro-Regular.eot'); - src: url('/fonts/source-code-pro/SourceCodePro-Regular.woff2') format('woff2'), + src: + url('/fonts/source-code-pro/SourceCodePro-Regular.woff2') format('woff2'), url('/fonts/source-code-pro/SourceCodePro-Regular.woff') format('woff'), url('/fonts/source-code-pro/SourceCodePro-Regular.ttf') format('truetype'), url('/fonts/source-code-pro/SourceCodePro-Regular.svg#SourceCodePro-Regular') format('svg'); diff --git a/apps/database-new/package.json b/apps/database-new/package.json index db88150b75..1fbb366d25 100644 --- a/apps/database-new/package.json +++ b/apps/database-new/package.json @@ -17,7 +17,7 @@ "common": "*", "config": "*", "dayjs": "^1.11.10", - "eslint-config-next": "^14.0.3", + "eslint-config-next": "^14.1.0", "lodash": "^4.17.21", "lucide-react": "^0.292.0", "next": "^14.0.3", diff --git a/apps/database-new/tsconfig.json b/apps/database-new/tsconfig.json index 881d250a66..2b727367ee 100644 --- a/apps/database-new/tsconfig.json +++ b/apps/database-new/tsconfig.json @@ -15,15 +15,15 @@ "incremental": true, "plugins": [ { - "name": "next" - } + "name": "next", + }, ], "paths": { "@/*": ["./*"], // handle ui package paths - "@ui/*": ["./../../packages/ui/src/*"] - } + "@ui/*": ["./../../packages/ui/src/*"], + }, }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/apps/database-new/types/supabase.ts b/apps/database-new/types/supabase.ts index 6a883759f1..7050f57386 100644 --- a/apps/database-new/types/supabase.ts +++ b/apps/database-new/types/supabase.ts @@ -46,7 +46,7 @@ export interface Database { columns: ['user_id'] referencedRelation: 'users' referencedColumns: ['id'] - } + }, ] } responses_ai: { @@ -92,7 +92,7 @@ export interface Database { columns: ['user_id'] referencedRelation: 'users' referencedColumns: ['id'] - } + }, ] } threads: { @@ -132,7 +132,7 @@ export interface Database { columns: ['user_id'] referencedRelation: 'users' referencedColumns: ['id'] - } + }, ] } } diff --git a/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.ComboBox.tsx b/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.ComboBox.tsx index fa68260238..5f2047470b 100644 --- a/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.ComboBox.tsx +++ b/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.ComboBox.tsx @@ -64,8 +64,8 @@ export function ComboBox({ {isLoading ? 'Loading...' : options.length === 0 - ? `No ${name} found` - : selectedOptionDisplayName ?? `Select a ${name}...`} + ? `No ${name} found` + : selectedOptionDisplayName ?? `Select a ${name}...`} diff --git a/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsx b/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsx index dfe36c3b34..b316a6cdbb 100644 --- a/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsx +++ b/apps/docs/components/ProjectConfigVariables/ProjectConfigVariables.tsx @@ -98,14 +98,14 @@ function OrgProjectSelector() { const stateSummary: ProjectOrgDataState = isUserLoading ? 'userLoading' : !isLoggedIn - ? 'loggedOut' - : anyIsPending - ? 'loggedIn.dataPending' - : anyIsError - ? 'loggedIn.dataError' - : projects?.length === 0 - ? 'loggedIn.dataSuccess.hasNoData' - : 'loggedIn.dataSuccess.hasData' + ? 'loggedOut' + : anyIsPending + ? 'loggedIn.dataPending' + : anyIsError + ? 'loggedIn.dataError' + : projects?.length === 0 + ? 'loggedIn.dataSuccess.hasNoData' + : 'loggedIn.dataSuccess.hasData' const formattedData: ComboBoxOption[] = useMemo( () => @@ -194,16 +194,16 @@ function BranchSelector() { const stateSummary: BranchesDataState = userLoading ? 'userLoading' : !isLoggedIn - ? 'loggedOut' - : !hasBranches - ? 'loggedIn.noBranches' - : isPending - ? 'loggedIn.branches.dataPending' - : isError - ? 'loggedIn.branches.dataError' - : data.length === 0 - ? 'loggedIn.branches.dataSuccess.noData' - : 'loggedIn.branches.dataSuccess.hasData' + ? 'loggedOut' + : !hasBranches + ? 'loggedIn.noBranches' + : isPending + ? 'loggedIn.branches.dataPending' + : isError + ? 'loggedIn.branches.dataError' + : data.length === 0 + ? 'loggedIn.branches.dataSuccess.noData' + : 'loggedIn.branches.dataSuccess.hasData' const formattedData: ComboBoxOption[] = stateSummary !== 'loggedIn.branches.dataSuccess.hasData' @@ -282,14 +282,14 @@ function VariableView({ variable, className }: { variable: Variable; className?: const stateSummary: VariableDataState = isUserLoading ? 'userLoading' : !isLoggedIn - ? 'loggedOut' - : !ref - ? 'loggedIn.noSelectedProject' - : isPending - ? 'loggedIn.selectedProject.dataPending' - : isError - ? 'loggedIn.selectedProject.dataError' - : 'loggedIn.selectedProject.dataSuccess' + ? 'loggedOut' + : !ref + ? 'loggedIn.noSelectedProject' + : isPending + ? 'loggedIn.selectedProject.dataPending' + : isError + ? 'loggedIn.selectedProject.dataError' + : 'loggedIn.selectedProject.dataSuccess' let variableValue: string = null if (stateSummary === 'loggedIn.selectedProject.dataSuccess') { @@ -319,8 +319,8 @@ function VariableView({ variable, className }: { variable: Variable; className?: stateSummary === 'loggedIn.selectedProject.dataPending' ? 'Loading...' : stateSummary === 'loggedIn.selectedProject.dataSuccess' - ? variableValue - : `YOUR ${prettyFormatVariable[variable].toUpperCase()}` + ? variableValue + : `YOUR ${prettyFormatVariable[variable].toUpperCase()}` } /> diff --git a/apps/docs/components/RealtimeLimitsEstimater.tsx b/apps/docs/components/RealtimeLimitsEstimater.tsx index d8e153c2d3..822c95f5a8 100644 --- a/apps/docs/components/RealtimeLimitsEstimater.tsx +++ b/apps/docs/components/RealtimeLimitsEstimater.tsx @@ -158,8 +158,8 @@ export default function RealtimeLimitsEstimater({}) { {computeAddOn === 'micro' ? 'Micro' : computeAddOn === 'small' - ? 'Small to medium' - : 'Large to 16XL'} + ? 'Small to medium' + : 'Large to 16XL'} diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsx index 733e07030f..19d14023f5 100644 --- a/apps/docs/components/reference/RefFunctionSection.tsx +++ b/apps/docs/components/reference/RefFunctionSection.tsx @@ -126,14 +126,14 @@ const RefFunctionSection: React.FC = (props) => { const codeBlockLang = example?.code?.startsWith('```js') ? 'js' : example?.code?.startsWith('```ts') - ? 'ts' - : example?.code?.startsWith('```dart') - ? 'dart' - : example?.code?.startsWith('```c#') - ? 'csharp' - : example?.code?.startsWith('```kotlin') - ? 'kotlin' - : 'js' + ? 'ts' + : example?.code?.startsWith('```dart') + ? 'dart' + : example?.code?.startsWith('```c#') + ? 'csharp' + : example?.code?.startsWith('```kotlin') + ? 'kotlin' + : 'js' // ` // import { createClient } from '@supabase/supabase-js' diff --git a/apps/docs/generator/legacy.ts b/apps/docs/generator/legacy.ts index 9cb6dced62..cf066ef1d0 100644 --- a/apps/docs/generator/legacy.ts +++ b/apps/docs/generator/legacy.ts @@ -259,10 +259,10 @@ function extractParamTypeAsString(paramDefinition) { x.value ? `${x.value}` : x.name - ? `${x.name}` - : x.type - ? `${x.type}` - : '' + ? `${x.name}` + : x.type + ? `${x.type}` + : '' ) .join(' | ') } diff --git a/apps/docs/generator/tsconfig.json b/apps/docs/generator/tsconfig.json index 8615cb5639..457c226cea 100644 --- a/apps/docs/generator/tsconfig.json +++ b/apps/docs/generator/tsconfig.json @@ -5,9 +5,9 @@ "noImplicitAny": false, "baseUrl": ".", "paths": { - "~/*": ["./*"] - } + "~/*": ["./*"], + }, }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/apps/docs/internals/generate-sitemap.mjs b/apps/docs/internals/generate-sitemap.mjs index 52c00e86bb..c82e2709de 100644 --- a/apps/docs/internals/generate-sitemap.mjs +++ b/apps/docs/internals/generate-sitemap.mjs @@ -53,7 +53,7 @@ async function generate() { ` - const formatted = prettier.format(sitemap, { + const formatted = await prettier.format(sitemap, { ...prettierConfig, parser: 'html', }) diff --git a/apps/docs/internals/tsconfig.json b/apps/docs/internals/tsconfig.json index de1ecb67a3..3f7e874789 100644 --- a/apps/docs/internals/tsconfig.json +++ b/apps/docs/internals/tsconfig.json @@ -7,9 +7,9 @@ "resolveJsonModule": true, "baseUrl": ".", "paths": { - "~/*": ["./*"] - } + "~/*": ["./*"], + }, }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/apps/docs/layouts/SiteLayout.tsx b/apps/docs/layouts/SiteLayout.tsx index 0b63909f28..d73be4e01d 100644 --- a/apps/docs/layouts/SiteLayout.tsx +++ b/apps/docs/layouts/SiteLayout.tsx @@ -201,8 +201,8 @@ const MobileHeader = memo(function MobileHeader() { {mobileMenuOpen ? 'Close' : menuLevel - ? levelsData[menuLevel].name - : levelsData['home'].name} + ? levelsData[menuLevel].name + : levelsData['home'].name} ) diff --git a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx index 7cc9a02f4d..30e18a6735 100644 --- a/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx +++ b/apps/docs/pages/guides/database/extensions/uuid-ossp.mdx @@ -88,7 +88,6 @@ create table contacts ( id uuid default uuid_generate_v4(), first_name text, last_name text, - primary key (id) ); ``` diff --git a/apps/docs/pages/guides/database/sql-to-api.mdx b/apps/docs/pages/guides/database/sql-to-api.mdx index fa031db611..9e8a486d0a 100644 --- a/apps/docs/pages/guides/database/sql-to-api.mdx +++ b/apps/docs/pages/guides/database/sql-to-api.mdx @@ -13,7 +13,7 @@ Select a set of columns from a single table with where, order by, and limit clau ```sql select first_name, last_name, team_id, age from players -where age between 20 and 24 and team_id <> 'STL' +where age between 20 and 24 and team_id != 'STL' order by last_name, first_name desc limit 20; ``` @@ -52,7 +52,7 @@ Select all columns from a single table with a complex where clause: AND OR AND ```sql select * from players -where ((team_id = 'CHN' and age > 35) or (team_id <> 'CHN' and age is not null)); +where ((team_id = 'CHN' and age > 35) or (team_id != 'CHN' and age is not null)); ``` ```js diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx index a21b2410a1..cae2ef8bba 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-angular.mdx @@ -230,7 +230,10 @@ export class AccountComponent implements OnInit { avatar_url: '', }) - constructor(private readonly supabase: SupabaseService, private formBuilder: FormBuilder) {} + constructor( + private readonly supabase: SupabaseService, + private formBuilder: FormBuilder + ) {} async ngOnInit(): Promise { await this.getProfile() @@ -421,7 +424,10 @@ export class AvatarComponent { @Output() upload = new EventEmitter() - constructor(private readonly supabase: SupabaseService, private readonly dom: DomSanitizer) {} + constructor( + private readonly supabase: SupabaseService, + private readonly dom: DomSanitizer + ) {} async downloadImage(path: string) { try { diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx index 1c082b246c..19f4343bcd 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-ionic-angular.mdx @@ -70,7 +70,10 @@ export interface Profile { export class SupabaseService { private supabase: SupabaseClient - constructor(private loadingCtrl: LoadingController, private toastCtrl: ToastController) { + constructor( + private loadingCtrl: LoadingController, + private toastCtrl: ToastController + ) { this.supabase = createClient(environment.supabaseUrl, environment.supabaseKey) } @@ -252,7 +255,10 @@ export class AccountPage implements OnInit { email = '' - constructor(private readonly supabase: SupabaseService, private router: Router) {} + constructor( + private readonly supabase: SupabaseService, + private router: Router + ) {} ngOnInit() { this.getEmail() this.getProfile() @@ -319,7 +325,10 @@ import { SupabaseService } from './supabase.service' styleUrls: ['app.component.scss'], }) export class AppComponent { - constructor(private supabase: SupabaseService, private router: Router) { + constructor( + private supabase: SupabaseService, + private router: Router + ) { this.supabase.authChanges((_, session) => { console.log(session) if (session?.user) { @@ -474,7 +483,10 @@ export class AvatarComponent { @Output() upload = new EventEmitter() - constructor(private readonly supabase: SupabaseService, private readonly dom: DomSanitizer) { + constructor( + private readonly supabase: SupabaseService, + private readonly dom: DomSanitizer + ) { addIcons({ person }) } diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx index f5634a1db9..f250a8f763 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-svelte.mdx @@ -121,11 +121,11 @@ Let's create a new component for that called `Account.svelte`. ```html src/lib/Account.svelte -
+
Email: {session.user.email}
- +
- +
-
- ``` diff --git a/apps/docs/scripts/search/sources/base.ts b/apps/docs/scripts/search/sources/base.ts index b061c6eec6..931a57290f 100644 --- a/apps/docs/scripts/search/sources/base.ts +++ b/apps/docs/scripts/search/sources/base.ts @@ -12,7 +12,10 @@ export type Section = { export abstract class BaseLoader { type: string - constructor(public source: string, public path: string) {} + constructor( + public source: string, + public path: string + ) {} abstract load(): Promise } @@ -23,7 +26,10 @@ export abstract class BaseSource { meta?: Json sections?: Section[] - constructor(public source: string, public path: string) {} + constructor( + public source: string, + public path: string + ) {} abstract process(): { checksum: string; meta?: Json; ragIgnore?: boolean; sections: Section[] } diff --git a/apps/docs/scripts/search/sources/github-discussion.ts b/apps/docs/scripts/search/sources/github-discussion.ts index 5a27de92c3..429a14af5c 100644 --- a/apps/docs/scripts/search/sources/github-discussion.ts +++ b/apps/docs/scripts/search/sources/github-discussion.ts @@ -77,7 +77,10 @@ export async function fetchDiscussions(owner: string, repo: string, categoryId: export class GitHubDiscussionLoader extends BaseLoader { type = 'github-discussions' as const - constructor(source: string, public discussion: Discussion) { + constructor( + source: string, + public discussion: Discussion + ) { super(source, discussion.url) } @@ -89,7 +92,11 @@ export class GitHubDiscussionLoader extends BaseLoader { export class GitHubDiscussionSource extends BaseSource { type = 'github-discussions' as const - constructor(source: string, path: string, public discussion: Discussion) { + constructor( + source: string, + path: string, + public discussion: Discussion + ) { super(source, path) } diff --git a/apps/docs/scripts/search/sources/markdown.ts b/apps/docs/scripts/search/sources/markdown.ts index 49c5f42b37..d9fed99120 100644 --- a/apps/docs/scripts/search/sources/markdown.ts +++ b/apps/docs/scripts/search/sources/markdown.ts @@ -192,7 +192,10 @@ export type ProcessedMdx = { export class MarkdownLoader extends BaseLoader { type = 'markdown' as const - constructor(source: string, public filePath: string) { + constructor( + source: string, + public filePath: string + ) { const path = filePath.replace(/^pages/, '').replace(/\.mdx?$/, '') super(source, path) } @@ -206,7 +209,11 @@ export class MarkdownLoader extends BaseLoader { export class MarkdownSource extends BaseSource { type = 'markdown' as const - constructor(source: string, path: string, public contents: string) { + constructor( + source: string, + path: string, + public contents: string + ) { super(source, path) } diff --git a/apps/docs/scripts/search/sources/partner-integrations.ts b/apps/docs/scripts/search/sources/partner-integrations.ts index cdbb758971..e675a1149a 100644 --- a/apps/docs/scripts/search/sources/partner-integrations.ts +++ b/apps/docs/scripts/search/sources/partner-integrations.ts @@ -34,7 +34,10 @@ export async function fetchPartners() { export class IntegrationLoader extends BaseLoader { type = 'partner-integration' as const - constructor(source: string, public partnerData: PartnerData) { + constructor( + source: string, + public partnerData: PartnerData + ) { const relPath = `/partners/integrations/${partnerData.slug}` super(source, relPath) } @@ -47,7 +50,11 @@ export class IntegrationLoader extends BaseLoader { export class IntegrationSource extends BaseSource { type = 'partner-integration' as const - constructor(source: string, path: string, public partnerData: PartnerData) { + constructor( + source: string, + path: string, + public partnerData: PartnerData + ) { super(source, path) } diff --git a/apps/docs/scripts/tsconfig.json b/apps/docs/scripts/tsconfig.json index de1ecb67a3..3f7e874789 100644 --- a/apps/docs/scripts/tsconfig.json +++ b/apps/docs/scripts/tsconfig.json @@ -7,9 +7,9 @@ "resolveJsonModule": true, "baseUrl": ".", "paths": { - "~/*": ["./*"] - } + "~/*": ["./*"], + }, }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/apps/docs/spec/parser/package.json b/apps/docs/spec/parser/package.json index 2129f45756..963b826eb1 100644 --- a/apps/docs/spec/parser/package.json +++ b/apps/docs/spec/parser/package.json @@ -25,7 +25,7 @@ "@types/lodash": "^4.14.202", "json-stringify-safe": "^5.0.1", "lodash": "^4.17.21", - "prettier": "^2.8.8", + "prettier": "^4.0.0-alpha.8", "tsx": "^4.7.0" }, "prettier": { diff --git a/apps/docs/styles/Home.module.css b/apps/docs/styles/Home.module.css index 6d7be21e75..d113f01f90 100644 --- a/apps/docs/styles/Home.module.css +++ b/apps/docs/styles/Home.module.css @@ -91,7 +91,9 @@ text-decoration: none; border: 1px solid #eaeaea; border-radius: 10px; - transition: color 0.15s ease, border-color 0.15s ease; + transition: + color 0.15s ease, + border-color 0.15s ease; max-width: 300px; } diff --git a/apps/docs/tsconfig.json b/apps/docs/tsconfig.json index cbc90dcb0d..8a55df06d9 100644 --- a/apps/docs/tsconfig.json +++ b/apps/docs/tsconfig.json @@ -5,7 +5,7 @@ "baseUrl": ".", "paths": { "~/*": ["./*"], - "@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths + "@ui/*": ["./../../packages/ui/src/*"], // handle ui package paths }, "target": "es2015", "lib": ["dom", "dom.iterable", "esnext"], @@ -19,14 +19,14 @@ "resolveJsonModule": true, "isolatedModules": true, "jsx": "preserve", - "module": "esnext" + "module": "esnext", }, "include": [ "next-env.d.ts", "**/*.ts", "**/*.tsx", "pages/guides/append-test.js", - "jest.config.mjs" + "jest.config.mjs", ], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/apps/docs/types/api.d.ts b/apps/docs/types/api.d.ts index 933a440215..2c654f2efc 100644 --- a/apps/docs/types/api.d.ts +++ b/apps/docs/types/api.d.ts @@ -9,8 +9,8 @@ type XOR = T | U extends object ? (Without & U) | (Without & T type OneOf = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] - ? OneOf<[XOR, ...Rest]> - : never + ? OneOf<[XOR, ...Rest]> + : never export interface paths { '/platform/notifications': { @@ -3846,7 +3846,7 @@ export interface components { message?: string status?: string }, - string + string, ] > result?: Record[] diff --git a/apps/studio/components/grid/components/common/Hooks.tsx b/apps/studio/components/grid/components/common/Hooks.tsx index b1d6ef0f77..1d52d6524b 100644 --- a/apps/studio/components/grid/components/common/Hooks.tsx +++ b/apps/studio/components/grid/components/common/Hooks.tsx @@ -62,12 +62,12 @@ export function useKeyboardShortcuts( return event.metaKey && event.shiftKey ? `Command+Shift+${event.key}` : event.metaKey - ? `Command+${event.key}` - : event.shiftKey && event.key === 'Enter' - ? `Shift+${event.key}` - : event.ctrlKey && event.key - ? `Control+${event.key}` - : event.key + ? `Command+${event.key}` + : event.shiftKey && event.key === 'Enter' + ? `Shift+${event.key}` + : event.ctrlKey && event.key + ? `Control+${event.key}` + : event.key } React.useEffect(() => { diff --git a/apps/studio/components/grid/components/common/Shortcuts.tsx b/apps/studio/components/grid/components/common/Shortcuts.tsx index 9323fc1b87..e9d4ba0b56 100644 --- a/apps/studio/components/grid/components/common/Shortcuts.tsx +++ b/apps/studio/components/grid/components/common/Shortcuts.tsx @@ -18,8 +18,8 @@ export function Shortcuts({ gridRef }: ShortcutsProps) { return navigator?.appVersion.indexOf('Win') !== -1 ? 'windows' : navigator?.appVersion.indexOf('Mac') !== -1 - ? 'macos' - : 'unknown' + ? 'macos' + : 'unknown' } const metakey = getClientOS() === 'windows' ? 'Control' : 'Command' setMetaKey(metakey) diff --git a/apps/studio/components/grid/components/header/Header.tsx b/apps/studio/components/grid/components/header/Header.tsx index d0e9d1c346..bbdacf9c5d 100644 --- a/apps/studio/components/grid/components/header/Header.tsx +++ b/apps/studio/components/grid/components/header/Header.tsx @@ -370,8 +370,8 @@ const RowHeader = ({ table, sorts, filters }: RowHeaderProps) => { {allRowsSelected ? `${totalRows} rows selected` : selectedRows.size > 1 - ? `${selectedRows.size} rows selected` - : `${selectedRows.size} row selected`} + ? `${selectedRows.size} rows selected` + : `${selectedRows.size} row selected`} {!allRowsSelected && totalRows > allRows.length && ( diff --git a/apps/studio/components/grid/components/header/filter/FilterRow.tsx b/apps/studio/components/grid/components/header/filter/FilterRow.tsx index 3be749c316..3dcf9c383b 100644 --- a/apps/studio/components/grid/components/header/filter/FilterRow.tsx +++ b/apps/studio/components/grid/components/header/filter/FilterRow.tsx @@ -25,8 +25,8 @@ const FilterRow = ({ table, filter, filterIdx, onChange, onDelete, onKeyDown }: column?.format === 'timestamptz' ? 'yyyy-mm-dd hh:mm:ss+zz' : column?.format === 'timestamp' - ? 'yyyy-mm-dd hh:mm:ss' - : 'Enter a value' + ? 'yyyy-mm-dd hh:mm:ss' + : 'Enter a value' return (
diff --git a/apps/studio/components/grid/utils/gridColumns.tsx b/apps/studio/components/grid/utils/gridColumns.tsx index 09f1110add..e2c259b2c4 100644 --- a/apps/studio/components/grid/utils/gridColumns.tsx +++ b/apps/studio/components/grid/utils/gridColumns.tsx @@ -56,8 +56,8 @@ export function getGridColumns( const columnWidth = options?.defaultWidth ? options.defaultWidth : columnDefaultWidth < columnWidthBasedOnName - ? columnWidthBasedOnName - : columnDefaultWidth + ? columnWidthBasedOnName + : columnDefaultWidth const columnDefinition: CalculatedColumn = { key: x.name, diff --git a/apps/studio/components/interfaces/Account/AuditLogs.tsx b/apps/studio/components/interfaces/Account/AuditLogs.tsx index b5e1222651..93ec9d85a0 100644 --- a/apps/studio/components/interfaces/Account/AuditLogs.tsx +++ b/apps/studio/components/interfaces/Account/AuditLogs.tsx @@ -247,8 +247,8 @@ const AuditLogs = () => { {project?.name ? 'Project: ' : organization?.name - ? 'Organization: ' - : null} + ? 'Organization: ' + : null} {project?.name ?? organization?.name ?? '-'}

{ {log.target.metadata.project_ref ? 'Ref: ' : log.target.metadata.org_slug - ? 'Slug: ' - : null} + ? 'Slug: ' + : null} {log.target.metadata.project_ref ?? log.target.metadata.org_slug}

diff --git a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx index 79b15b8769..ed5b3f297b 100644 --- a/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx +++ b/apps/studio/components/interfaces/Auth/AuthProvidersForm/ProviderForm.tsx @@ -59,8 +59,8 @@ const ProviderForm = ({ config, provider }: ProviderFormProps) => { initialValues[key] = configValue ? configValue : provider.properties[key].type === 'boolean' - ? false - : '' + ? false + : '' } } }) diff --git a/apps/studio/components/interfaces/Auth/Policies/Policies.utils.ts b/apps/studio/components/interfaces/Auth/Policies/Policies.utils.ts index f0b1ea30fd..ebfcc71f43 100644 --- a/apps/studio/components/interfaces/Auth/Policies/Policies.utils.ts +++ b/apps/studio/components/interfaces/Auth/Policies/Policies.utils.ts @@ -22,8 +22,8 @@ export const createSQLPolicy = ( definition: definition ? definition.replace(/\s+/g, ' ').trim() : definition === undefined - ? null - : definition, + ? null + : definition, check: check ? check.replace(/\s+/g, ' ').trim() : check === undefined ? null : check, } diff --git a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx index ac1364f092..1d63cccb33 100644 --- a/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx +++ b/apps/studio/components/interfaces/Database/Extensions/EnableExtensionModal.tsx @@ -89,8 +89,8 @@ const EnableExtensionModal = ({ visible, extension, onCancel }: EnableExtensionM defaultSchema !== undefined && defaultSchema !== null ? defaultSchema : values.schema === 'custom' - ? values.name - : values.schema + ? values.name + : values.schema enableExtension({ projectRef: project.ref, diff --git a/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx b/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx index 8b9041ec3d..d4463792e3 100644 --- a/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx +++ b/apps/studio/components/interfaces/Database/Hooks/HTTPRequestFields.tsx @@ -67,8 +67,8 @@ const HTTPRequestFields = ({ {type === 'http_request' ? 'HTTP Request' : type === 'supabase_function' - ? 'Edge Function' - : ''} + ? 'Edge Function' + : ''} } > diff --git a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx index 7dd0d9f0c5..9a3b5c0ae3 100644 --- a/apps/studio/components/interfaces/Database/Roles/RolesList.tsx +++ b/apps/studio/components/interfaces/Database/Roles/RolesList.tsx @@ -128,10 +128,10 @@ const RolesList = () => { maxConnectionLimit === 0 || maxConnectionLimit === undefined ? 'bg-control' : totalActiveConnections > 0.9 * maxConnectionLimit - ? 'bg-red-800' - : totalActiveConnections > 0.75 * maxConnectionLimit - ? 'bg-amber-900' - : 'bg-green-800' + ? 'bg-red-800' + : totalActiveConnections > 0.75 * maxConnectionLimit + ? 'bg-amber-900' + : 'bg-green-800' } labelTop={ Number.isInteger(maxConnectionLimit) diff --git a/apps/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx b/apps/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx index 657108ab6f..81670b645e 100644 --- a/apps/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx +++ b/apps/studio/components/interfaces/Home/NewProjectPanel/APIKeys.tsx @@ -142,10 +142,10 @@ const APIKeys = () => { !canReadAPIKeys ? 'You need additional permissions to view API keys' : jwtSecretUpdateStatus === JwtSecretUpdateStatus.Failed - ? 'JWT secret update failed, new API key may have issues' - : jwtSecretUpdateStatus === JwtSecretUpdateStatus.Updating - ? 'Updating JWT secret...' - : apiService?.defaultApiKey + ? 'JWT secret update failed, new API key may have issues' + : jwtSecretUpdateStatus === JwtSecretUpdateStatus.Updating + ? 'Updating JWT secret...' + : apiService?.defaultApiKey } onChange={() => {}} descriptionText={ diff --git a/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx b/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx index eacdfffe40..bcf5b2e642 100644 --- a/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx +++ b/apps/studio/components/interfaces/Home/ProjectList/ProjectCardStatus.tsx @@ -73,8 +73,8 @@ export const ProjectCardStatus = ({ const alertType = isCritical ? 'destructive' : projectStatus === 'isPaused' - ? 'default' - : 'warning' + ? 'default' + : 'warning' if ( (activeWarnings.length === 0 || warningContent === undefined) && diff --git a/apps/studio/components/interfaces/Home/ServiceStatus.tsx b/apps/studio/components/interfaces/Home/ServiceStatus.tsx index 8999e80dcc..4673737ced 100644 --- a/apps/studio/components/interfaces/Home/ServiceStatus.tsx +++ b/apps/studio/components/interfaces/Home/ServiceStatus.tsx @@ -151,8 +151,8 @@ const ServiceStatus = () => { {service.isLoading ? 'Checking status' : service.isSuccess - ? 'No issues' - : 'Unable to connect'} + ? 'No issues' + : 'Unable to connect'}

{service.isLoading ? ( diff --git a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx index 8866b28072..f5e5e328ad 100644 --- a/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx +++ b/apps/studio/components/interfaces/Organization/AuditLogs/AuditLogs.tsx @@ -379,8 +379,8 @@ const AuditLogs = () => { {project?.name ? 'Project: ' : organization?.name - ? 'Organization: ' - : null} + ? 'Organization: ' + : null} {project?.name ?? organization?.name ?? 'Unknown'}

{ {log.target.metadata.project_ref ? 'Ref: ' : log.target.metadata.org_slug - ? 'Slug: ' - : null} + ? 'Slug: ' + : null} {log.target.metadata.project_ref ?? log.target.metadata.org_slug}

diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx index 0c795398bf..ee1684e5c4 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/BillingMetric.tsx @@ -112,10 +112,10 @@ const BillingMetric = ({ isUsageBillingEnabled ? 'text-gray-dark-800' : isExceededLimit - ? 'text-red-900' - : isApproachingLimit - ? 'text-yellow-1000' - : 'text-gray-dark-800' + ? 'text-red-900' + : isApproachingLimit + ? 'text-yellow-1000' + : 'text-gray-dark-800' } /> diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx index d4b7ff6545..7ba12b8403 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/BillingBreakdown/UpcomingInvoice.tsx @@ -134,8 +134,8 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => { {item.unit_price === 0 ? 'FREE' : item.unit_price - ? formatCurrency(item.unit_price) - : null} + ? formatCurrency(item.unit_price) + : null} )}
@@ -195,15 +195,15 @@ const UpcomingInvoice = ({ slug }: UpcomingInvoiceProps) => { {fee.usage_original ? `${formatUsage(fee.usage_metric!, fee.usage_original)}` : fee.quantity - ? fee.quantity - : null} + ? fee.quantity + : null}
{formatCurrency(item.amount)} {fee.unit_price_desc ? `${fee.unit_price_desc}` : fee.unit_price - ? formatCurrency(fee.unit_price) - : null} + ? formatCurrency(fee.unit_price) + : null} {formatCurrency(fee.amount) ?? formatCurrency(0)} diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx index e50dd0dfd2..77b4e6ccb7 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/ProjectUpdateDisabledTooltip.tsx @@ -30,8 +30,8 @@ const ProjectUpdateDisabledTooltip = ({ {projectUpdateDisabled ? 'Subscription changes are currently disabled. Our engineers are working on a fix.' : projectNotActive - ? 'Unable to update subscription as project is currently not active' - : ''} + ? 'Unable to update subscription as project is currently not active' + : ''} diff --git a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx index 94e4df7c53..ba8be5691f 100644 --- a/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx +++ b/apps/studio/components/interfaces/Organization/BillingSettings/Subscription/PlanUpdateSidePanel.tsx @@ -408,10 +408,10 @@ const PlanUpdateSidePanel = () => { {item.unit_price_desc ? item.unit_price_desc : item.unit_price === 0 - ? 'FREE' - : item.unit_price - ? `${formatCurrency(item.unit_price)}` - : ''} + ? 'FREE' + : item.unit_price + ? `${formatCurrency(item.unit_price)}` + : ''} {formatCurrency(item.total_price)} diff --git a/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx b/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx index bd9eea80a2..792b45ccdd 100644 --- a/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx +++ b/apps/studio/components/interfaces/Organization/GeneralSettings/GeneralSettings.tsx @@ -55,8 +55,8 @@ const GeneralSettings = () => { values.isOptedIntoAi && !existingOptInTags.includes(OPT_IN_TAGS.AI_SQL) ? existingOptInTags.concat([OPT_IN_TAGS.AI_SQL]) : !values.isOptedIntoAi && existingOptInTags.includes(OPT_IN_TAGS.AI_SQL) - ? existingOptInTags.filter((x) => x !== OPT_IN_TAGS.AI_SQL) - : existingOptInTags + ? existingOptInTags.filter((x) => x !== OPT_IN_TAGS.AI_SQL) + : existingOptInTags updateOrganization( { slug, name: values.name, opt_in_tags: updatedOptInTags }, diff --git a/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx b/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx index 278d563d80..987f544f56 100644 --- a/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx +++ b/apps/studio/components/interfaces/Organization/Usage/UsageSection/AttributeUsage.tsx @@ -159,9 +159,9 @@ const AttributeUsage = ({ ? 'bg-foreground-light' : 'bg-red-900' : usageBasedBilling === false && - usageRatio >= USAGE_APPROACHING_THRESHOLD - ? 'bg-amber-900' - : 'bg-foreground-light' + usageRatio >= USAGE_APPROACHING_THRESHOLD + ? 'bg-amber-900' + : 'bg-foreground-light' )} bgClass="bg-surface-300" value={usageMeta?.usage ?? 0} @@ -205,8 +205,8 @@ const AttributeUsage = ({ {(usageMeta?.pricing_free_units ?? 0) === -1 || usageExcess < 0 ? `0${attribute.unit === 'bytes' ? ' GB' : ''}` : attribute.unit === 'bytes' - ? `${usageExcess.toFixed(2)} GB` - : usageExcess.toLocaleString()} + ? `${usageExcess.toFixed(2)} GB` + : usageExcess.toLocaleString()}

)} diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx index b156deec8d..02361fe320 100644 --- a/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx +++ b/apps/studio/components/interfaces/ProjectAPIDocs/Content/Bucket.tsx @@ -35,10 +35,10 @@ const Bucket = ({ language, apikey, endpoint }: ContentProps) => { {allowedMimeTypes === null ? 'All types are allowed' : (allowedMimeTypes ?? []).length === 0 - ? 'No types are allowed' - : (allowedMimeTypes ?? []).length > 1 - ? (allowedMimeTypes ?? []).join(', ') - : 'Unknown'} + ? 'No types are allowed' + : (allowedMimeTypes ?? []).length > 1 + ? (allowedMimeTypes ?? []).join(', ') + : 'Unknown'}

Max file size limit:{' '} diff --git a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts index 3780225b2f..67b9adefa8 100644 --- a/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts +++ b/apps/studio/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.constants.ts @@ -603,11 +603,11 @@ export const DOCS_RESOURCE_CONTENT: { curl -X POST '${endpoint}/rest/v1/rpc/${rpcName}' \\${bashParams} -H "Content-Type: application/json" \\ -H "apikey: ${apiKey}" ${ - showBearer - ? `\\ + showBearer + ? `\\ -H "Authorization: Bearer ${apiKey}"` - : '' - } + : '' + } `, js: ` let { data, error } = await supabase diff --git a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx index 24c2e95b29..bed81a0236 100644 --- a/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx +++ b/apps/studio/components/interfaces/Reports/ReportFilterBar.tsx @@ -121,7 +121,7 @@ const ReportFilterBar = ({ key: productFilter.filterKey, compare: 'matches', value: productFilter.filterValue, - } as ReportFilterItem) + }) as ReportFilterItem ) onRemoveFilters(toRemove) if (nextProductFilter) { diff --git a/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx b/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx index 89ced5c0ad..e9f47b7d94 100644 --- a/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx +++ b/apps/studio/components/interfaces/Reports/renderers/ApiRenderers.tsx @@ -289,8 +289,8 @@ const RouteTdContent = (datum: RouteTdContentProps) => ( datum.status_code >= 400 ? 'bg-orange-500' : datum.status_code >= 300 - ? 'bg-yellow-500' - : 'bg-green-500' + ? 'bg-yellow-500' + : 'bg-green-500' }`} value={String(datum.status_code)} /> diff --git a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx index 07fcf82edb..85137afe43 100644 --- a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx +++ b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx @@ -112,10 +112,10 @@ const JWTSettings = () => { !canReadJWTSecret ? 'You need additional permissions to view the JWT secret' : isJwtSecretUpdateFailed - ? 'JWT secret update failed' - : isUpdatingJwtSecret - ? 'Updating JWT secret...' - : config?.jwt_secret || '' + ? 'JWT secret update failed' + : isUpdatingJwtSecret + ? 'Updating JWT secret...' + : config?.jwt_secret || '' } className="input-mono" descriptionText={ diff --git a/apps/studio/components/interfaces/Settings/API/ServiceList.tsx b/apps/studio/components/interfaces/Settings/API/ServiceList.tsx index 68d9e952f5..33e374feee 100644 --- a/apps/studio/components/interfaces/Settings/API/ServiceList.tsx +++ b/apps/studio/components/interfaces/Settings/API/ServiceList.tsx @@ -78,8 +78,8 @@ const ServiceList = () => { const endpoint = !showReadReplicasUI ? primaryEndpoint : isCustomDomainActive && state.selectedDatabaseId === projectRef - ? `https://${customDomainData.customDomain.hostname}` - : selectedDatabase?.restUrl + ? `https://${customDomainData.customDomain.hostname}` + : selectedDatabase?.restUrl return (

diff --git a/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx index 3e4316a768..a684c1a190 100644 --- a/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx +++ b/apps/studio/components/interfaces/Settings/Addons/ComputeInstanceSidePanel.tsx @@ -199,8 +199,8 @@ const ComputeInstanceSidePanel = () => { isFreePlan ? 'Unable to update compute instance on a free plan' : !canUpdateCompute - ? 'You do not have permission to update compute instance' - : undefined + ? 'You do not have permission to update compute instance' + : undefined } header={
diff --git a/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx index 649d419c73..7299a828cb 100644 --- a/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx +++ b/apps/studio/components/interfaces/Settings/Addons/CustomDomainSidePanel.tsx @@ -139,8 +139,8 @@ const CustomDomainSidePanel = () => { isFreePlan ? 'Unable to enable custom domain on a free plan' : !canUpdateCustomDomain - ? 'You do not have permission to update custom domain' - : undefined + ? 'You do not have permission to update custom domain' + : undefined } header={
diff --git a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx index 0f6e31660b..11311df16c 100644 --- a/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx +++ b/apps/studio/components/interfaces/Settings/Addons/IPv4SidePanel.tsx @@ -127,8 +127,8 @@ const IPv4SidePanel = () => { isFreePlan ? 'Unable to enable IPv4 on a free plan' : !canUpdateIPv4 - ? 'You do not have permission to update IPv4' - : undefined + ? 'You do not have permission to update IPv4' + : undefined }*/ header={
diff --git a/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx b/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx index 4d5edb2c35..e539aa53a3 100644 --- a/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx +++ b/apps/studio/components/interfaces/Settings/Addons/PITRSidePanel.tsx @@ -173,10 +173,10 @@ const PITRSidePanel = () => { hasHipaaAddon ? 'Unable to change PITR with HIPAA add-on' : isFreePlan - ? 'Unable to enable point in time recovery on a free plan' - : !canUpdatePitr - ? 'You do not have permission to update PITR' - : undefined + ? 'Unable to enable point in time recovery on a free plan' + : !canUpdatePitr + ? 'You do not have permission to update PITR' + : undefined } header={
diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx index 62997d3807..aa74d940fb 100644 --- a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx +++ b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPassword.tsx @@ -135,8 +135,8 @@ const ResetDbPassword = ({ disabled = false }) => { {!canResetDbPassword ? 'You need additional permissions to reset the database password' : !isProjectActive - ? 'Unable to reset database password as project is not active' - : ''} + ? 'Unable to reset database password as project is not active' + : ''}
diff --git a/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx b/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx index 81050b91d0..d08ee2e946 100644 --- a/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx +++ b/apps/studio/components/interfaces/Settings/Database/SSLConfiguration.tsx @@ -159,8 +159,8 @@ const SSLConfiguration = () => { {!canUpdateSSLEnforcement ? 'You need additional permissions to update SSL enforcement for your project' : !hasAccessToSSLEnforcement - ? 'Your project does not have access to SSL enforcement' - : ''} + ? 'Your project does not have access to SSL enforcement' + : ''}
diff --git a/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx b/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx index 743ecab44e..e3be18abd0 100644 --- a/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx +++ b/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx @@ -136,8 +136,8 @@ export const UsePoolerCheckbox = ({ {checked ? 'Resolves to IPv4' : resolvesToIpV6 - ? 'Resolves to IPv6' - : 'Will resolve to IPv6'} + ? 'Resolves to IPv6' + : 'Will resolve to IPv6'} )}
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx index 9ae8336041..38e0212c38 100644 --- a/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx +++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/PauseProjectButton.tsx @@ -84,12 +84,12 @@ const PauseProjectButton = () => { {isPaused ? 'Your project is already paused' : !canPauseProject - ? 'You need additional permissions to pause this project' - : !isProjectActive - ? 'Unable to pause project as project is not active' - : !isFreePlan - ? 'Projects on a paid plan will always be running' - : ''} + ? 'You need additional permissions to pause this project' + : !isProjectActive + ? 'Unable to pause project as project is not active' + : !isFreePlan + ? 'Projects on a paid plan will always be running' + : ''}
diff --git a/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx b/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx index ec58289b46..b496a0604e 100644 --- a/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx +++ b/apps/studio/components/interfaces/Settings/General/Infrastructure/RestartServerButton.tsx @@ -150,8 +150,8 @@ const RestartServerButton = () => { {!canRestartProject ? 'You need additional permissions to restart this project' : !isProjectActive - ? 'Unable to restart project as project is not active' - : ''} + ? 'Unable to restart project as project is not active' + : ''}
diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx index 035992db67..9139532007 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureActivity.tsx @@ -71,8 +71,8 @@ const InfrastructureActivity = () => { subscription === undefined ? `/` : subscription.plan.id === 'free' - ? `/org/${organization?.slug ?? '[slug]'}/billing#subscription` - : `/project/${projectRef}/settings/addons` + ? `/org/${organization?.slug ?? '[slug]'}/billing#subscription` + : `/project/${projectRef}/settings/addons` const categoryMeta = INFRA_ACTIVITY_METRICS.find((category) => category.key === 'infra') diff --git a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx index 1cbda74d9c..6ae2ec00bb 100644 --- a/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx +++ b/apps/studio/components/interfaces/Settings/Infrastructure/InfrastructureConfiguration/MapView.tsx @@ -159,14 +159,14 @@ const MapView = ({ name: hasNoDatabases ? undefined : hasPrimary - ? `Primary Database${ - replicas.length > 0 - ? ` + ${replicas.length} replica${replicas.length > 1 ? 's' : ''} ` - : '' - }` - : `${replicas.length} Read Replica${ - replicas.length > 1 ? 's' : '' - } deployed`, + ? `Primary Database${ + replicas.length > 0 + ? ` + ${replicas.length} replica${replicas.length > 1 ? 's' : ''} ` + : '' + }` + : `${replicas.length} Read Replica${ + replicas.length > 1 ? 's' : '' + } deployed`, }, }) }} @@ -192,8 +192,8 @@ const MapView = ({ hasNoDatabases ? 'fill-background-surface-300 stroke-border-stronger' : hasPrimary - ? 'fill-brand stroke-brand-500' - : 'fill-brand-500 stroke-brand-400' + ? 'fill-brand stroke-brand-500' + : 'fill-brand-500 stroke-brand-400' }`} /> diff --git a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx index 30cc6f8ceb..0055238a69 100644 --- a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx +++ b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelSection.tsx @@ -123,8 +123,8 @@ You can change the scope of the access for Supabase by configuring process.env.NEXT_PUBLIC_ENVIRONMENT === 'prod' ? 'https://vercel.com/integrations/supabase' : process.env.NEXT_PUBLIC_ENVIRONMENT === 'staging' - ? `https://vercel.com/integrations/supabase-v2-staging` - : 'https://vercel.com/integrations/supabase-v2-local' + ? `https://vercel.com/integrations/supabase-v2-staging` + : 'https://vercel.com/integrations/supabase-v2-local' let connections = (isProjectScoped diff --git a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx index 7b748cc5b6..551dc52734 100644 --- a/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx +++ b/apps/studio/components/interfaces/Settings/Logs/LogTable.tsx @@ -301,8 +301,8 @@ const LogTable = ({ queryType ? 'flex w-1/2 flex-col' : focusedLog - ? 'flex w-1/2 flex-col' - : 'hidden w-0' + ? 'flex w-1/2 flex-col' + : 'hidden w-0' } > !bucket?.public && values.public ? 'Warning: Making bucket public' : bucket?.public && !values.public - ? 'Warning: Making bucket private' - : '' + ? 'Warning: Making bucket private' + : '' } variant="warning" withIcon @@ -151,8 +151,8 @@ const EditBucketModal = ({ visible, bucket, onClose }: EditBucketModalProps) => {!bucket?.public && values.public ? `This will make all objects in the bucket "${bucket?.name}" public` : bucket?.public && !values.public - ? `All objects in "${bucket?.name}" will be made private and will only be accessible via signed URLs or downloaded with the right authorisation headers` - : ''} + ? `All objects in "${bucket?.name}" will be made private and will only be accessible via signed URLs or downloaded with the right authorisation headers` + : ''}

)} diff --git a/apps/studio/components/interfaces/Support/SupportForm.tsx b/apps/studio/components/interfaces/Support/SupportForm.tsx index 5a851f1d66..a5d381ecd1 100644 --- a/apps/studio/components/interfaces/Support/SupportForm.tsx +++ b/apps/studio/components/interfaces/Support/SupportForm.tsx @@ -99,19 +99,19 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => { selectedProjectFromUrl !== undefined ? selectedProjectFromUrl.ref : projects.length > 0 - ? projects[0].ref - : 'no-project' + ? projects[0].ref + : 'no-project' ) const selectedOrganizationSlug = selectedOrganizationFromUrl !== undefined ? selectedOrganizationFromUrl.slug : selectedProjectRef !== 'no-project' - ? organizations?.find((org) => { - const project = projects.find((project) => project.ref === selectedProjectRef) - return org.id === project?.organization_id - })?.slug - : organizations?.[0]?.slug + ? organizations?.find((org) => { + const project = projects.find((project) => project.ref === selectedProjectRef) + return org.id === project?.organization_id + })?.slug + : organizations?.[0]?.slug const { data: subscription, isLoading: isLoadingSubscription } = useOrgSubscriptionQuery({ orgSlug: selectedOrganizationSlug, diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx index b38a841a4f..02889333aa 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx @@ -41,8 +41,8 @@ const InputField = ({ field.defaultValue === null ? '' : typeof field.defaultValue === 'string' && field.defaultValue.length === 0 - ? 'EMPTY' - : `Default: ${field.defaultValue}` + ? 'EMPTY' + : `Default: ${field.defaultValue}` } onChange={(event: any) => onUpdateField({ [field.name]: event.target.value })} /> @@ -129,10 +129,10 @@ const InputField = ({ field.value === null && field.defaultValue === null ? 'NULL' : field.value === '' - ? 'EMPTY' - : typeof field.defaultValue === 'string' && field.defaultValue.length === 0 - ? 'EMPTY' - : `NULL (Default: ${field.defaultValue})` + ? 'EMPTY' + : typeof field.defaultValue === 'string' && field.defaultValue.length === 0 + ? 'EMPTY' + : `NULL (Default: ${field.defaultValue})` } actions={
@@ -253,8 +253,8 @@ const InputField = ({ field.isIdentity ? 'Automatically generated as identity' : field.defaultValue !== null - ? `Default: ${field.defaultValue}` - : 'NULL' + ? `Default: ${field.defaultValue}` + : 'NULL' } disabled={!isEditable} onChange={(event: any) => onUpdateField({ [field.name]: event.target.value })} diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx index da21527965..38bd01beb4 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/JsonEditor/DrilldownViewer/DrilldownPane.tsx @@ -72,8 +72,8 @@ const DrilldownPane = ({ pane, jsonData, activeKey, onSelectKey = noop }: Drilld {isNull(jsonData[key]) ? 'null' : typeof jsonData[key] === 'string' - ? `"${jsonData[key]}"` - : jsonData[key].toString()} + ? `"${jsonData[key]}"` + : jsonData[key].toString()}

))} diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts index 1ce268496b..43e863e68f 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts @@ -25,14 +25,14 @@ export const generateRowFields = ( isUndefined(row) && TEXT_TYPES.includes(column.format) ? null : isUndefined(row) && column.format === 'bool' && !column.is_nullable - ? column.default_value - : isUndefined(row) && column.format === 'bool' && column.is_nullable - ? 'null' - : isUndefined(row) - ? '' - : DATETIME_TYPES.includes(column.format) - ? convertPostgresDatetimeToInputDatetime(column.format, row[column.name]) - : parseValue(row[column.name], column.format) + ? column.default_value + : isUndefined(row) && column.format === 'bool' && column.is_nullable + ? 'null' + : isUndefined(row) + ? '' + : DATETIME_TYPES.includes(column.format) + ? convertPostgresDatetimeToInputDatetime(column.format, row[column.name]) + : parseValue(row[column.name], column.format) const foreignKey = find(relationships, (relationship) => { return ( @@ -164,8 +164,8 @@ export const generateRowObjectFromFields = ( const value = TEXT_TYPES.includes(field.format) ? field.value : (field?.value ?? '').length === 0 - ? null - : field.value + ? null + : field.value if (isArray && value !== null) { rowObject[field.name] = tryParseJson(value) diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx index 01d262f175..5c995586c8 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx @@ -332,11 +332,11 @@ const SidePanelEditor = ({ .filter((t: any) => t.id !== table.id) .map((t: any) => `${t.schema}.${t.name}`) : !isAlreadyEnabled && enabled - ? // Toggle realtime on - [`${table.schema}.${table.name}`].concat( - publicationTables.map((t: any) => `${t.schema}.${t.name}`) - ) - : null + ? // Toggle realtime on + [`${table.schema}.${table.name}`].concat( + publicationTables.map((t: any) => `${t.schema}.${t.name}`) + ) + : null if (realtimeTables === null) return await updatePublication({ id, diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.ts index 710e32ab7e..55edf99395 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.ts +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.utils.ts @@ -117,18 +117,18 @@ export const addForeignKey = async ( deletion_action === FOREIGN_KEY_CASCADE_ACTION.CASCADE ? 'ON DELETE CASCADE' : deletion_action === FOREIGN_KEY_CASCADE_ACTION.RESTRICT - ? 'ON DELETE RESTRICT' - : deletion_action === FOREIGN_KEY_CASCADE_ACTION.SET_DEFAULT - ? 'ON DELETE SET DEFAULT' - : deletion_action === FOREIGN_KEY_CASCADE_ACTION.SET_NULL - ? 'ON DELETE SET NULL' - : '' + ? 'ON DELETE RESTRICT' + : deletion_action === FOREIGN_KEY_CASCADE_ACTION.SET_DEFAULT + ? 'ON DELETE SET DEFAULT' + : deletion_action === FOREIGN_KEY_CASCADE_ACTION.SET_NULL + ? 'ON DELETE SET NULL' + : '' const updateAction = update_action === FOREIGN_KEY_CASCADE_ACTION.CASCADE ? 'ON UPDATE CASCADE' : update_action === FOREIGN_KEY_CASCADE_ACTION.RESTRICT - ? 'ON UPDATE RESTRICT' - : '' + ? 'ON UPDATE RESTRICT' + : '' const query = ` ALTER TABLE "${relationship.source_schema}"."${relationship.source_table_name}" diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx index 31fae8ea41..46d002c9d4 100644 --- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImportPreview.tsx @@ -107,8 +107,8 @@ const SpreadsheetImportPreview = ({ {previewHeaders.length === 0 ? 'No headers have been selected' : previewRows.length === 0 - ? 'Your CSV contains no data' - : ''} + ? 'Your CSV contains no data' + : ''}

)} diff --git a/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx b/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx index 24f1b77b04..a9bbb9c2d1 100644 --- a/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/TableDefinition.tsx @@ -61,8 +61,8 @@ const TableDefinition = ({ id }: TableDefinitionProps) => { entityType?.type === ENTITY_TYPE.VIEW ? `create view ${entityType.schema}.${entityType.name} as\n` : entityType?.type === ENTITY_TYPE.MATERIALIZED_VIEW - ? `create materialized view ${entityType.schema}.${entityType.name} as\n` - : '' + ? `create materialized view ${entityType.schema}.${entityType.name} as\n` + : '' const formattedDefinition = useMemo( () => diff --git a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx index 0edd3f13aa..d27807aeb1 100644 --- a/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx +++ b/apps/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx @@ -118,7 +118,7 @@ const TableGridEditor = ({ result: any[] } | undefined - ) + ), ][] } diff --git a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx index 05e34dbde5..e30ee64bfc 100644 --- a/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx +++ b/apps/studio/components/layouts/AppLayout/EnableBranchingButton/GithubRepositorySelection.tsx @@ -49,8 +49,8 @@ const GithubRepositorySelection = ({ process.env.NEXT_PUBLIC_ENVIRONMENT === 'prod' ? `https://github.com/apps/supabase/installations/new?state=${ref}` : process.env.NEXT_PUBLIC_ENVIRONMENT === 'staging' - ? `https://github.com/apps/supabase-staging/installations/new?state=${ref}` - : `https://github.com/apps/supabase-local-testing/installations/new?state=${ref}` + ? `https://github.com/apps/supabase-staging/installations/new?state=${ref}` + : `https://github.com/apps/supabase-local-testing/installations/new?state=${ref}` function onSelectConnectRepo() { if (integration) { diff --git a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx index ded658b071..6a02018ec5 100644 --- a/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx +++ b/apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx @@ -75,8 +75,8 @@ const OrganizationDropdown = ({ isNewNav = false }: OrganizationDropdownProps) = const href = router.pathname.includes('[slug]') ? router.pathname.replace('[slug]', org.slug) : isNewNav - ? `/org/${org.slug}` - : `/org/${org.slug}/general` + ? `/org/${org.slug}` + : `/org/${org.slug}/general` return ( = ({ const url = action.url.includes('[ref]') ? action.url.replace('[ref]', project?.ref ?? '_') : action.url.includes('[slug]') - ? action.url.replace('[slug]', organization?.slug ?? '_') - : action.url + ? action.url.replace('[slug]', organization?.slug ?? '_') + : action.url return ( diff --git a/apps/studio/components/ui/MultiSelect/index.tsx b/apps/studio/components/ui/MultiSelect/index.tsx index c22641b89b..4398c0ed31 100644 --- a/apps/studio/components/ui/MultiSelect/index.tsx +++ b/apps/studio/components/ui/MultiSelect/index.tsx @@ -104,8 +104,8 @@ export default function MultiSelect({ const updatedPayload = allowDuplicateSelection ? [..._selected.concat([option.value])] : isActive - ? [...without(_selected, option.value)] - : [..._selected.concat([option.value])] + ? [...without(_selected, option.value)] + : [..._selected.concat([option.value])] // Payload must always include disabled options const compulsoryOptions = options diff --git a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx index 9a9dcb701a..566f135772 100644 --- a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx +++ b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx @@ -107,10 +107,10 @@ const DisplayApiSettings = () => { !canReadAPIKeys ? 'You need additional permissions to view API keys' : jwtSecretUpdateStatus === JwtSecretUpdateStatus.Failed - ? 'JWT secret update failed, new API key may have issues' - : jwtSecretUpdateStatus === JwtSecretUpdateStatus.Updating - ? 'Updating JWT secret...' - : x.api_key + ? 'JWT secret update failed, new API key may have issues' + : jwtSecretUpdateStatus === JwtSecretUpdateStatus.Updating + ? 'Updating JWT secret...' + : x.api_key } onChange={() => {}} descriptionText={ diff --git a/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx b/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx index 312e2accf7..09de63ce68 100644 --- a/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx +++ b/apps/studio/components/ui/ProjectSettings/DisplayConfigSettings.tsx @@ -78,8 +78,8 @@ const DisplayConfigSettings = () => { jwtSecretUpdateStatus === JwtSecretUpdateStatus.Failed ? 'JWT secret update failed' : jwtSecretUpdateStatus === JwtSecretUpdateStatus.Updating - ? 'Updating JWT secret...' - : jwtSecret + ? 'Updating JWT secret...' + : jwtSecret } className="input-mono" descriptionText="Used to decode your JWTs. You can also use this to mint your own JWTs." diff --git a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx index 6c30301afd..3e88bec826 100644 --- a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx +++ b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx @@ -78,12 +78,12 @@ const ResourceExhaustionWarningBanner = () => { metric === undefined ? undefined : metric === null - ? '/project/[ref]/settings/[infra-path]' - : metric === 'disk_space' || metric === 'read_only' - ? '/project/[ref]/settings/database' - : metric === 'auth_email_rate_limit' - ? '/project/[ref]/settings/auth' - : `/project/[ref]/settings/[infra-path]#${metric}` + ? '/project/[ref]/settings/[infra-path]' + : metric === 'disk_space' || metric === 'read_only' + ? '/project/[ref]/settings/database' + : metric === 'auth_email_rate_limit' + ? '/project/[ref]/settings/auth' + : `/project/[ref]/settings/[infra-path]#${metric}` ) ?.replace('[ref]', ref ?? 'default') ?.replace('[infra-path]', 'infrastructure') diff --git a/apps/studio/data/api.d.ts b/apps/studio/data/api.d.ts index b746c68aa9..5657cb9834 100644 --- a/apps/studio/data/api.d.ts +++ b/apps/studio/data/api.d.ts @@ -9,8 +9,8 @@ type XOR = T | U extends object ? (Without & U) | (Without & T type OneOf = T extends [infer Only] ? Only : T extends [infer A, infer B, ...infer Rest] - ? OneOf<[XOR, ...Rest]> - : never + ? OneOf<[XOR, ...Rest]> + : never export interface paths { '/platform/notifications': { @@ -3843,7 +3843,7 @@ export interface components { message?: string status?: string }, - string + string, ] > result?: Record[] diff --git a/apps/studio/data/database/entity-definitions-query.ts b/apps/studio/data/database/entity-definitions-query.ts index 5c6d93a1da..9ee7702057 100644 --- a/apps/studio/data/database/entity-definitions-query.ts +++ b/apps/studio/data/database/entity-definitions-query.ts @@ -85,7 +85,7 @@ export type EntityDefinitionsData = EntityDefinition[] export type EntityDefinitionsError = unknown export const useEntityDefinitionsQuery = < - TData extends EntityDefinitionsData = EntityDefinitionsData + TData extends EntityDefinitionsData = EntityDefinitionsData, >( { limit, projectRef, connectionString }: EntityDefinitionsVariables, options: UseQueryOptions = {} diff --git a/apps/studio/data/database/foreign-key-constraints-query.ts b/apps/studio/data/database/foreign-key-constraints-query.ts index 28978c86bc..b57ac57f84 100644 --- a/apps/studio/data/database/foreign-key-constraints-query.ts +++ b/apps/studio/data/database/foreign-key-constraints-query.ts @@ -82,7 +82,7 @@ export type ForeignKeyConstraintsData = ForeignKeyConstraint[] export type ForeignKeyConstraintsError = unknown export const useForeignKeyConstraintsQuery = < - TData extends ForeignKeyConstraintsData = ForeignKeyConstraintsData + TData extends ForeignKeyConstraintsData = ForeignKeyConstraintsData, >( { projectRef, connectionString, schema }: ForeignKeyConstraintsVariables, options: UseQueryOptions = {} diff --git a/apps/studio/data/organizations/organization-billing-subscription-preview.ts b/apps/studio/data/organizations/organization-billing-subscription-preview.ts index 95f2d7bc6b..93d23d6133 100644 --- a/apps/studio/data/organizations/organization-billing-subscription-preview.ts +++ b/apps/studio/data/organizations/organization-billing-subscription-preview.ts @@ -73,7 +73,7 @@ export type OrganizationBillingSubscriptionPreviewData = Awaited< > export const useOrganizationBillingSubscriptionPreview = < - TData = OrganizationBillingSubscriptionPreviewData + TData = OrganizationBillingSubscriptionPreviewData, >( { organizationSlug, tier }: OrganizationBillingSubscriptionPreviewVariables, { diff --git a/apps/studio/data/organizations/organization-join-token-validation-query.ts b/apps/studio/data/organizations/organization-join-token-validation-query.ts index 87cce40f05..09c7af60cc 100644 --- a/apps/studio/data/organizations/organization-join-token-validation-query.ts +++ b/apps/studio/data/organizations/organization-join-token-validation-query.ts @@ -30,7 +30,7 @@ export type OrganizationJoinTokenValidationData = Awaited< export type OrganizationJoinTokenValidationError = ResponseError export const useOrganizationJoinTokenValidationQuery = < - TData = OrganizationJoinTokenValidationData + TData = OrganizationJoinTokenValidationData, >( { slug, token }: OrganizationJoinTokenValidationVariables, { diff --git a/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts b/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts index f5b2ae7711..d0d5c440e3 100644 --- a/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts +++ b/apps/studio/data/profile/mfa-authenticator-assurance-level-query.ts @@ -21,7 +21,7 @@ type CustomAuthMFAGetAuthenticatorAssuranceLevelError = NonNullable< > export const useAuthenticatorAssuranceLevelQuery = < - TData = CustomAuthMFAGetAuthenticatorAssuranceLevelData + TData = CustomAuthMFAGetAuthenticatorAssuranceLevelData, >({ enabled = true, ...options diff --git a/apps/studio/hooks/deprecated.ts b/apps/studio/hooks/deprecated.ts index 0942134838..4bd98e7dcf 100644 --- a/apps/studio/hooks/deprecated.ts +++ b/apps/studio/hooks/deprecated.ts @@ -62,12 +62,12 @@ function useKeyboardShortcuts( return event.metaKey && event.shiftKey ? `Command+Shift+${event.key}` : event.metaKey - ? `Command+${event.key}` - : event.shiftKey && event.key === 'Enter' - ? `Shift+${event.key}` - : event.ctrlKey && event.key - ? `Control+${event.key}` - : event.key + ? `Command+${event.key}` + : event.shiftKey && event.key === 'Enter' + ? `Shift+${event.key}` + : event.ctrlKey && event.key + ? `Control+${event.key}` + : event.key } useEffect(() => { diff --git a/apps/studio/lib/helpers.ts b/apps/studio/lib/helpers.ts index 6b3cfa9868..82354e42e9 100644 --- a/apps/studio/lib/helpers.ts +++ b/apps/studio/lib/helpers.ts @@ -55,8 +55,8 @@ export const getURL = () => { process?.env?.NEXT_PUBLIC_SITE_URL && process.env.NEXT_PUBLIC_SITE_URL !== '' ? process.env.NEXT_PUBLIC_SITE_URL : process?.env?.VERCEL_URL && process.env.VERCEL_URL !== '' - ? process.env.VERCEL_URL - : 'https://supabase.com/dashboard' + ? process.env.VERCEL_URL + : 'https://supabase.com/dashboard' return url.includes('http') ? url : `https://${url}` } diff --git a/apps/studio/package.json b/apps/studio/package.json index e7f3f310d1..231177ef52 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -140,14 +140,14 @@ "autoprefixer": "^10.4.14", "common": "*", "config": "*", - "eslint-config-next": "^13.5.6", + "eslint-config-next": "^14.1.0", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.7.0", "openapi-types": "^12.1.3", "openapi-typescript": "^6.7.1", "postcss": "^8.4.31", - "prettier": "^2.8.8", + "prettier": "^4.0.0-alpha.8", "sass": "^1.68.0", "storybook-dark-mode": "^3.0.1", "tailwindcss": "^3.4.1", diff --git a/apps/studio/pages/project/[ref]/reports/query-performance.tsx b/apps/studio/pages/project/[ref]/reports/query-performance.tsx index e48b7e18ef..25121909a5 100644 --- a/apps/studio/pages/project/[ref]/reports/query-performance.tsx +++ b/apps/studio/pages/project/[ref]/reports/query-performance.tsx @@ -125,8 +125,8 @@ const QueryPerformanceReport: NextPageWithLayout = () => { {indexHitRate >= 0.99 ? checkAlert : indexHitRate >= 0.95 - ? warnAlert - : dangerAlert} + ? warnAlert + : dangerAlert}
{(queryHitRate?.data![0]?.ratio * 100).toFixed(2)} @@ -142,8 +142,8 @@ const QueryPerformanceReport: NextPageWithLayout = () => { {tableHitRate >= 0.99 ? checkAlert : tableHitRate >= 0.95 - ? warnAlert - : dangerAlert} + ? warnAlert + : dangerAlert}
{(queryHitRate?.data![1]?.ratio * 100).toFixed(2)} diff --git a/apps/studio/pages/sign-in-fly-tos.tsx b/apps/studio/pages/sign-in-fly-tos.tsx index 509eee1894..b173eca40b 100644 --- a/apps/studio/pages/sign-in-fly-tos.tsx +++ b/apps/studio/pages/sign-in-fly-tos.tsx @@ -47,8 +47,8 @@ const SignInFlyTos = () => { fly_extension_id ? getProjectByFlyExtensionId({ flyExtensionId: fly_extension_id as string }) : fly_organization_id - ? getOrgByFlyOrgId({ flyOrganizationId: fly_organization_id as string }) - : setLoading(false) + ? getOrgByFlyOrgId({ flyOrganizationId: fly_organization_id as string }) + : setLoading(false) }, [isReady]) const onSignInWithFly = async () => { diff --git a/apps/studio/pages/support/new.tsx b/apps/studio/pages/support/new.tsx index 76ffea0a42..966b277c32 100644 --- a/apps/studio/pages/support/new.tsx +++ b/apps/studio/pages/support/new.tsx @@ -55,8 +55,8 @@ const SupportPage = () => { {isLoading ? 'Checking status' : isHealthy - ? 'All systems operational' - : 'Active incident ongoing'} + ? 'All systems operational' + : 'Active incident ongoing'} diff --git a/apps/studio/pages/vercel/integrate.tsx b/apps/studio/pages/vercel/integrate.tsx index 38b349d0a5..0c04b7dcf4 100644 --- a/apps/studio/pages/vercel/integrate.tsx +++ b/apps/studio/pages/vercel/integrate.tsx @@ -616,8 +616,8 @@ const ProjectLinkItem = observer( result.status === 'waiting' ? 'text-foreground-light' : result.status === 'fail' - ? 'text-foreground-light' - : 'text-foreground' + ? 'text-foreground-light' + : 'text-foreground' }`} > {result?.message ?? 'Processing...'} diff --git a/apps/studio/stores/pgmeta/TableStore.ts b/apps/studio/stores/pgmeta/TableStore.ts index 23088868c2..220920ec0c 100644 --- a/apps/studio/stores/pgmeta/TableStore.ts +++ b/apps/studio/stores/pgmeta/TableStore.ts @@ -36,11 +36,14 @@ export default class TableStore extends PostgresMetaInterface { if (columnsResponse.error) throw columnsResponse.error // merge 2 response to create the final array - const columnsByTableId = (columnsResponse as PostgresColumn[]).reduce((acc, curr) => { - acc[curr.table_id] ??= [] - acc[curr.table_id].push(curr) - return acc - }, {} as Record) + const columnsByTableId = (columnsResponse as PostgresColumn[]).reduce( + (acc, curr) => { + acc[curr.table_id] ??= [] + acc[curr.table_id].push(curr) + return acc + }, + {} as Record + ) const tables: PostgresTable[] = [] tablesResponse.forEach((table: PostgresTable) => { const columns = columnsByTableId[table.id] diff --git a/apps/studio/tsconfig.json b/apps/studio/tsconfig.json index 677ac2f3da..df8cb48123 100644 --- a/apps/studio/tsconfig.json +++ b/apps/studio/tsconfig.json @@ -17,15 +17,15 @@ "downlevelIteration": true, "incremental": true, "paths": { - "@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths + "@ui/*": ["./../../packages/ui/src/*"], // handle ui package paths }, "useDefineForClassFields": true, "plugins": [ { - "name": "next" - } - ] + "name": "next", + }, + ], }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], } diff --git a/apps/studio/types/userContent.ts b/apps/studio/types/userContent.ts index 24e4a25c38..83ea9647e7 100644 --- a/apps/studio/types/userContent.ts +++ b/apps/studio/types/userContent.ts @@ -1,5 +1,5 @@ export interface UserContent< - T = Dashboards.Content | SqlSnippets.Content | LogSqlSnippets.Content + T = Dashboards.Content | SqlSnippets.Content | LogSqlSnippets.Content, > { id?: string name: string diff --git a/apps/www/_blog/2022-03-08-postgres-audit.mdx b/apps/www/_blog/2022-03-08-postgres-audit.mdx index bf5ad75191..3ea7ac3d7c 100644 --- a/apps/www/_blog/2022-03-08-postgres-audit.mdx +++ b/apps/www/_blog/2022-03-08-postgres-audit.mdx @@ -104,20 +104,20 @@ So instead, we'll lean on PostgreSQL's schema-less [`JSONB` data type](https://w That approach has the added benefit of allowing us to store multiple tables' audit history in a single audit table. ```sql -create table audit.record_version( - id bigserial primary key, +create table audit.record_version ( + id bigserial primary key, -- auditing metadata - record_id uuid, -- identifies a new record by it's table + primary key - old_record_id uuid, -- ^ - op varchar(8) not null, -- INSERT/UPDATE/DELETE/TRUNCATE - ts timestamptz not null default now(), + record_id uuid, -- identifies a new record by it's table + primary key + old_record_id uuid, -- ^ + op varchar(8) not null, -- INSERT/UPDATE/DELETE/TRUNCATE + ts timestamptz not null default now(), -- table identifiers - table_oid oid not null, -- pg internal id for a table - table_schema name not null, -- audited table's schema name e.g. 'public' - table_name name not null, -- audited table's table name e.g. 'account' + table_oid oid not null, -- pg internal id for a table + table_schema name not null, -- audited table's schema name e.g. 'public' + table_name name not null, -- audited table's table name e.g. 'account' -- record data - record jsonb, -- contents of the new record - old_record jsonb -- previous record contents (for UPDATE/DELETE) + record jsonb, -- contents of the new record + old_record jsonb -- previous record contents (for UPDATE/DELETE) ); ``` diff --git a/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx b/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx index d5a1f64196..cd6380cef0 100644 --- a/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx +++ b/apps/www/_blog/2022-08-24-building-a-realtime-trello-board-with-supabase-and-angular.mdx @@ -614,7 +614,10 @@ import { filter, map, take } from 'rxjs/operators' providedIn: 'root', }) export class AuthGuard implements CanActivate { - constructor(private auth: AuthService, private router: Router) {} + constructor( + private auth: AuthService, + private router: Router + ) {} canActivate(): Observable { return this.auth.currentUser.pipe( diff --git a/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx b/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx index e34c4d02fa..d444008019 100644 --- a/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx +++ b/apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx @@ -1479,7 +1479,11 @@ import { App, URLOpenListenerEvent } from '@capacitor/app' styleUrls: ['app.component.scss'], }) export class AppComponent { - constructor(private zone: NgZone, private router: Router, private authService: AuthService) { + constructor( + private zone: NgZone, + private router: Router, + private authService: AuthService + ) { this.setupListener() } diff --git a/apps/www/_blog/2023-03-01-geo-queries-with-postgis-in-ionic-angular.mdx b/apps/www/_blog/2023-03-01-geo-queries-with-postgis-in-ionic-angular.mdx index 2213babdbf..f8b6a3b790 100644 --- a/apps/www/_blog/2023-03-01-geo-queries-with-postgis-in-ionic-angular.mdx +++ b/apps/www/_blog/2023-03-01-geo-queries-with-postgis-in-ionic-angular.mdx @@ -501,7 +501,10 @@ export class StorePage implements OnInit { long: undefined, } - constructor(public modalCtrl: ModalController, private storesService: StoresService) {} + constructor( + public modalCtrl: ModalController, + private storesService: StoresService + ) {} ngOnInit() {} @@ -629,7 +632,10 @@ export class HomePage { selectedMarker: StoreMarker | null = null selectedStore: StoreResult | null = null - constructor(private storesService: StoresService, private modalCtrl: ModalController) {} + constructor( + private storesService: StoresService, + private modalCtrl: ModalController + ) {} ionViewDidEnter() { this.createMap() diff --git a/apps/www/_blog/2023-10-03-postgres-dynamic-table-partitioning.mdx b/apps/www/_blog/2023-10-03-postgres-dynamic-table-partitioning.mdx index a757bb9c22..922254a3ca 100644 --- a/apps/www/_blog/2023-10-03-postgres-dynamic-table-partitioning.mdx +++ b/apps/www/_blog/2023-10-03-postgres-dynamic-table-partitioning.mdx @@ -38,20 +38,20 @@ Partitioning is a simple solution, but for Postgres this usually requires settin Let’s explore a working example showing how to escape this situation using dynamic table partitioning. We’ll setup a simulated “chat app” that has to store possibly millions of chat messages per day. The first step is to set up a fake “Large Table” problem to simulate a data set that has grown past where Postgres can handle it all in one table. So first, we’ll add a couple of new tables for our example chat app: ```sql -CREATE TABLE chats( +create table chats ( id bigserial, - created_at timestamptz NOT NULL DEFAULT now(), - PRIMARY KEY (id) + created_at timestamptz not null default now(), + primary key (id) ); -CREATE TABLE chat_messages( +create table chat_messages ( id bigserial, - created_at timestamptz NOT NULL, - chat_id bigint NOT NULL, - chat_created_at timestamptz NOT NULL, - message text NOT NULL, - PRIMARY KEY (id), - FOREIGN KEY (chat_id) REFERENCES chats(id) + created_at timestamptz not null, + chat_id bigint not null, + chat_created_at timestamptz not null, + message text not null, + primary key (id), + foreign key (chat_id) references chats (id) ); ``` diff --git a/apps/www/components/Blog/BlogFilters.tsx b/apps/www/components/Blog/BlogFilters.tsx index 0288f3055a..16334a6418 100644 --- a/apps/www/components/Blog/BlogFilters.tsx +++ b/apps/www/components/Blog/BlogFilters.tsx @@ -125,8 +125,8 @@ const BlogFilters = ({ posts, setPosts, setCategory, allCategories, handlePosts category === 'all' && !searchKey && !activeCategory ? 'alternative' : category === activeCategory - ? 'alternative' - : 'outline' + ? 'alternative' + : 'outline' } onClick={() => setCategory(category)} size={is2XL ? 'tiny' : 'small'} diff --git a/apps/www/components/Blog/BlogListItem.tsx b/apps/www/components/Blog/BlogListItem.tsx index 3ba168ca5c..096476bab1 100644 --- a/apps/www/components/Blog/BlogListItem.tsx +++ b/apps/www/components/Blog/BlogListItem.tsx @@ -35,8 +35,8 @@ const BlogListItem = ({ post }: Props) => { !post.thumb ? `/images/blog/blog-placeholder.png` : post.type === 'casestudy' - ? post.thumb - : `/images/blog/${post.thumb}` + ? post.thumb + : `/images/blog/${post.thumb}` } className="scale-100 object-cover overflow-hidden transform transition-transform group-hover:scale-105" alt={`${post.title} thumbnail`} diff --git a/apps/www/components/Charts/PGCharts.tsx b/apps/www/components/Charts/PGCharts.tsx index 9b1740b718..3297eab4e9 100644 --- a/apps/www/components/Charts/PGCharts.tsx +++ b/apps/www/components/Charts/PGCharts.tsx @@ -85,8 +85,8 @@ const Chart = () => { selection === 'latency' ? 'Latency (ms)' : selection === 'avg_latency' - ? 'Avg latency per result (ms)' - : 'Number of results', + ? 'Avg latency per result (ms)' + : 'Number of results', position: 'insideBottom', offset: -32, fill: 'hsl(var(--foreground-default))', diff --git a/apps/www/components/CodeBlock/CodeBlock.module.css b/apps/www/components/CodeBlock/CodeBlock.module.css index fdf6fa2cc2..93c8a85902 100644 --- a/apps/www/components/CodeBlock/CodeBlock.module.css +++ b/apps/www/components/CodeBlock/CodeBlock.module.css @@ -4,7 +4,9 @@ .code-line { @apply block; - transition: filter 500ms ease, opacity 500ms ease; + transition: + filter 500ms ease, + opacity 500ms ease; transition-delay: 200ms; } diff --git a/apps/www/components/CodeBlock/CodeBlock.tsx b/apps/www/components/CodeBlock/CodeBlock.tsx index 52d2596aec..2931926a6a 100644 --- a/apps/www/components/CodeBlock/CodeBlock.tsx +++ b/apps/www/components/CodeBlock/CodeBlock.tsx @@ -44,8 +44,8 @@ function CodeBlock(props: CodeBlockProps) { let lang = props.lang ? props.lang : props.className - ? props.className.replace('language-', '') - : 'js' + ? props.className.replace('language-', '') + : 'js' // force jsx to be js highlighted if (lang === 'jsx') lang = 'js' diff --git a/apps/www/components/Footer/index.tsx b/apps/www/components/Footer/index.tsx index 94dbe57f4f..997f91464b 100644 --- a/apps/www/components/Footer/index.tsx +++ b/apps/www/components/Footer/index.tsx @@ -76,8 +76,8 @@ const Footer = (props: Props) => { forceDark ? supabaseLogoWordmarkDark : mounted && resolvedTheme?.includes('dark') - ? supabaseLogoWordmarkDark - : supabaseLogoWordmarkLight + ? supabaseLogoWordmarkDark + : supabaseLogoWordmarkLight } width={160} height={30} diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx index 1bf9d786c0..17042c750c 100644 --- a/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx +++ b/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx @@ -63,8 +63,8 @@ export const LaunchSection = (props: WeekDayProps) => { nextDayNotShipped ? 'launch-week-timeline-border--approaching' : props.shipped - ? 'border-brand' - : 'border-purple-700', + ? 'border-brand' + : 'border-purple-700', className, ].join(' ')} >
diff --git a/apps/www/components/LaunchWeek/7/Releases/index.tsx b/apps/www/components/LaunchWeek/7/Releases/index.tsx index 891509fe24..6ab3fef9cc 100644 --- a/apps/www/components/LaunchWeek/7/Releases/index.tsx +++ b/apps/www/components/LaunchWeek/7/Releases/index.tsx @@ -305,8 +305,8 @@ export default function LW7Releases() { i === 2 && isTablet ? aiImageMobileVariant : i !== 0 - ? opacityVariant - : undefined + ? opacityVariant + : undefined } > { slider.isEnd ? SWIPER_STATE.END : slider.isBeginning - ? SWIPER_STATE.START - : SWIPER_STATE.MIDDLE + ? SWIPER_STATE.START + : SWIPER_STATE.MIDDLE ) } className="relative flex md:hidden justify-center max-w-full w-full overflow-hidden items-center rounded-full bg-surface-100 p-2" diff --git a/apps/www/internals/generate-sitemap.mjs b/apps/www/internals/generate-sitemap.mjs index 09088f341e..d99cd90dbc 100644 --- a/apps/www/internals/generate-sitemap.mjs +++ b/apps/www/internals/generate-sitemap.mjs @@ -9,6 +9,7 @@ import prettier from 'prettier' async function generate() { const prettierConfig = await prettier.resolveConfig('./.prettierrc.js') + const pages = await globby([ 'pages/*.js', 'pages/*.tsx', @@ -96,7 +97,7 @@ async function generate() { ` - const formatted = prettier.format(sitemap, { + const formatted = await prettier.format(sitemap, { ...prettierConfig, parser: 'html', }) diff --git a/apps/www/lib/constants.ts b/apps/www/lib/constants.ts index 288053121c..1752b361eb 100644 --- a/apps/www/lib/constants.ts +++ b/apps/www/lib/constants.ts @@ -31,8 +31,8 @@ export const SITE_URL = process.env.NEXT_PUBLIC_VERCEL_ENV === 'production' ? 'https://supabase.com/launch-week' : process.env.NEXT_PUBLIC_VERCEL_URL - ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/launch-week` - : 'http://localhost:3000/launch-week' + ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}/launch-week` + : 'http://localhost:3000/launch-week' export const SITE_ORIGIN = new URL(SITE_URL).origin export const TWITTER_USER_NAME = 'supabase' export const LW7_DATE = 'April 10th 2023' diff --git a/apps/www/lib/database.types.ts b/apps/www/lib/database.types.ts index c834e0a411..2d2ff80377 100644 --- a/apps/www/lib/database.types.ts +++ b/apps/www/lib/database.types.ts @@ -124,7 +124,7 @@ export interface Database { columns: ['contact'] referencedRelation: 'partner_contacts' referencedColumns: ['id'] - } + }, ] } } diff --git a/apps/www/pages/customers/customers.module.css b/apps/www/pages/customers/customers.module.css index 673690668c..5c85f6cd58 100644 --- a/apps/www/pages/customers/customers.module.css +++ b/apps/www/pages/customers/customers.module.css @@ -1,11 +1,8 @@ .bg-visual { animation: fadeIn 3s ease-out both; background-image: - /* Bg glow */ radial-gradient( - 80% 100% at 50% 75%, - #3ecf8e10 0%, - #0d0e1200 100% - ), + /* Bg glow */ + radial-gradient(80% 100% at 50% 75%, #3ecf8e10 0%, #0d0e1200 100%), radial-gradient(40% 70% at 50% 80%, #3ecf8e20 0%, #3ecf8e00 100%), /* radial-gradient(100% 100% at 50% 80%, #1c1c1c50 0%, #3ecf8e00 100%), */ /* Stars from left to right =================================== */ diff --git a/apps/www/pages/launch-week/tickets/[username].tsx b/apps/www/pages/launch-week/tickets/[username].tsx index 219b2db192..524f9b6174 100644 --- a/apps/www/pages/launch-week/tickets/[username].tsx +++ b/apps/www/pages/launch-week/tickets/[username].tsx @@ -146,8 +146,8 @@ export const getStaticProps: GetStaticProps = async ({ params }) => { const ticketType = user?.metadata?.hasSecretTicket ? 'secret' : user?.golden - ? 'platinum' - : 'regular' + ? 'platinum' + : 'regular' const ogImageUrl = `https://obuldanrptloktxcffvn.supabase.co/storage/v1/object/public/images/lwx/og/${ticketType}/${username}.png` diff --git a/apps/www/public/css/fonts.css b/apps/www/public/css/fonts.css index fe4b1f5fc1..cb6474c794 100644 --- a/apps/www/public/css/fonts.css +++ b/apps/www/public/css/fonts.css @@ -4,56 +4,64 @@ @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Book.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Book.woff2) format('woff2'), url(/fonts/custom/CustomFont-Book.woff) format('woff'); font-weight: 400; font-style: normal; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-BookItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-BookItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-BookItalic.woff) format('woff'); font-weight: 400; font-style: italic; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Medium.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Medium.woff2) format('woff2'), url(/fonts/custom/CustomFont-Medium.woff) format('woff'); font-weight: 500; font-style: normal; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-MediumItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-MediumItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-MediumItalic.woff) format('woff'); font-weight: 500; font-style: italic; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Bold.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Bold.woff2) format('woff2'), url(/fonts/custom/CustomFont-Bold.woff) format('woff'); font-weight: 700; font-style: 600; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-BoldItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-BoldItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-BoldItalic.woff) format('woff'); font-style: 600; font-style: italic; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-Black.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-Black.woff2) format('woff2'), url(/fonts/custom/CustomFont-Black.woff) format('woff'); font-weight: 800; font-style: normal; } @font-face { font-family: 'circular'; - src: url(/fonts/custom/CustomFont-BlackItalic.woff2) format('woff2'), + src: + url(/fonts/custom/CustomFont-BlackItalic.woff2) format('woff2'), url(/fonts/custom/CustomFont-BlackItalic.woff) format('woff'); font-weight: 800; font-style: italic; @@ -64,7 +72,8 @@ @font-face { font-family: 'source code pro'; src: url('/fonts/source-code-pro/SourceCodePro-Regular.eot'); - src: url('/fonts/source-code-pro/SourceCodePro-Regular.woff2') format('woff2'), + src: + url('/fonts/source-code-pro/SourceCodePro-Regular.woff2') format('woff2'), url('/fonts/source-code-pro/SourceCodePro-Regular.woff') format('woff'), url('/fonts/source-code-pro/SourceCodePro-Regular.ttf') format('truetype'), url('/fonts/source-code-pro/SourceCodePro-Regular.svg#SourceCodePro-Regular') format('svg'); diff --git a/apps/www/styles/index.css b/apps/www/styles/index.css index 292e23afe6..3a59219be8 100644 --- a/apps/www/styles/index.css +++ b/apps/www/styles/index.css @@ -19,7 +19,8 @@ @font-face { font-family: 'custom-font'; - src: url(../../../packages/common/assets/fonts/CustomFont-Book.woff2) format('woff2'), + src: + url(../../../packages/common/assets/fonts/CustomFont-Book.woff2) format('woff2'), url(../../../packages/common/assets/fonts/CustomFont-Book.woff) format('woff'); font-weight: 400; font-style: normal; @@ -28,7 +29,8 @@ @font-face { font-family: 'custom-font'; - src: url(../../../packages/common/assets/fonts/CustomFont-Medium.woff2) format('woff2'), + src: + url(../../../packages/common/assets/fonts/CustomFont-Medium.woff2) format('woff2'), url(../../../packages/common/assets/fonts/CustomFont-Medium.woff) format('woff'); font-weight: 500; font-style: normal; diff --git a/apps/www/supabase/functions/hubspot-notification/index.ts b/apps/www/supabase/functions/hubspot-notification/index.ts index bfffec856c..e3aab3535c 100644 --- a/apps/www/supabase/functions/hubspot-notification/index.ts +++ b/apps/www/supabase/functions/hubspot-notification/index.ts @@ -79,10 +79,10 @@ serve(async (req) => { input.table === 'partner_contacts' ? PARTNER_FORM_ID : input.table === 'dpa_downloads' - ? DPA_FORM_ID - : input.table === 'soc2_requests' - ? SOC2_FORM_ID - : ENTERPRISE_FORM_ID + ? DPA_FORM_ID + : input.table === 'soc2_requests' + ? SOC2_FORM_ID + : ENTERPRISE_FORM_ID // Using HubSpot's submit data to a form API // https://legacydocs.hubspot.com/docs/methods/forms/submit_form diff --git a/apps/www/tsconfig.json b/apps/www/tsconfig.json index dd54cfebcf..6f01b16d40 100644 --- a/apps/www/tsconfig.json +++ b/apps/www/tsconfig.json @@ -3,7 +3,7 @@ "baseUrl": ".", "paths": { "~/*": ["./*"], - "@ui/*": ["./../../packages/ui/src/*"] // handle ui package paths + "@ui/*": ["./../../packages/ui/src/*"], // handle ui package paths }, "downlevelIteration": true, "target": "es5", @@ -22,10 +22,10 @@ "incremental": true, "plugins": [ { - "name": "next" - } - ] + "name": "next", + }, + ], }, "exclude": ["node_modules", "supabase"], - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"] + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], } diff --git a/package-lock.json b/package-lock.json index 4a6f3bc8e8..b8626598f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,10 +15,10 @@ "packages/*" ], "devDependencies": { - "eslint": "^8.45.0", + "eslint": "^8.56.0", "eslint-config-custom": "*", - "prettier": "^2.8.8", - "prettier-plugin-sql-cst": "^0.5.0", + "prettier": "^4.0.0-alpha.8", + "prettier-plugin-sql-cst": "^0.11.0", "sass": "^1.68.0", "supabase": "^1.45.2", "turbo": "^1.11.2" @@ -40,7 +40,7 @@ "common": "*", "config": "*", "dayjs": "^1.11.10", - "eslint-config-next": "^14.0.3", + "eslint-config-next": "^14.1.0", "lodash": "^4.17.21", "lucide-react": "^0.292.0", "next": "^14.0.3", @@ -69,11 +69,11 @@ "integrity": "sha512-7xRqh9nMvP5xrW4/+L0jgRRX+HoNRGnfJpD+5Wq6/13j3dsdzxO3BCXn7D3hMqsDb+vjZnJq+vI7+EtgrYZTeA==" }, "apps/database-new/node_modules/@next/eslint-plugin-next": { - "version": "14.0.3", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.0.3.tgz", - "integrity": "sha512-j4K0n+DcmQYCVnSAM+UByTVfIHnYQy2ODozfQP+4RdwtRDfobrIvKq1K4Exb2koJ79HSSa7s6B2SA8T/1YR3RA==", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.1.0.tgz", + "integrity": "sha512-x4FavbNEeXx/baD/zC/SdrvkjSby8nBn8KcCREqk6UuwvwoAPZmaV8TFCAuo/cpovBRTIY67mHhe86MQQm/68Q==", "dependencies": { - "glob": "7.1.7" + "glob": "10.3.10" } }, "apps/database-new/node_modules/@next/swc-darwin-arm64": { @@ -304,11 +304,11 @@ } }, "apps/database-new/node_modules/eslint-config-next": { - "version": "14.0.3", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.0.3.tgz", - "integrity": "sha512-IKPhpLdpSUyKofmsXUfrvBC49JMUTdeaD8ZIH4v9Vk0sC1X6URTuTJCLtA0Vwuj7V/CQh0oISuSTvNn5//Buew==", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.1.0.tgz", + "integrity": "sha512-SBX2ed7DoRFXC6CQSLc/SbLY9Ut6HxNB2wPTcoIWjUMd7aF7O/SIE7111L8FdZ9TXsNV4pulUDnfthpyPtbFUg==", "dependencies": { - "@next/eslint-plugin-next": "14.0.3", + "@next/eslint-plugin-next": "14.1.0", "@rushstack/eslint-patch": "^1.3.3", "@typescript-eslint/parser": "^5.4.2 || ^6.0.0", "eslint-import-resolver-node": "^0.3.6", @@ -381,25 +381,6 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "apps/database-new/node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "apps/database-new/node_modules/lucide-react": { "version": "0.292.0", "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.292.0.tgz", @@ -751,7 +732,7 @@ "@types/lodash": "^4.14.202", "json-stringify-safe": "^5.0.1", "lodash": "^4.17.21", - "prettier": "^2.8.8", + "prettier": "^4.0.0-alpha.8", "tsx": "^4.7.0" } }, @@ -881,14 +862,14 @@ "autoprefixer": "^10.4.14", "common": "*", "config": "*", - "eslint-config-next": "^13.5.6", + "eslint-config-next": "^14.1.0", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.7.0", "openapi-types": "^12.1.3", "openapi-typescript": "^6.7.1", "postcss": "^8.4.31", - "prettier": "^2.8.8", + "prettier": "^4.0.0-alpha.8", "sass": "^1.68.0", "storybook-dark-mode": "^3.0.1", "tailwindcss": "^3.4.1", @@ -896,11 +877,12 @@ } }, "apps/studio/node_modules/@next/eslint-plugin-next": { - "version": "13.5.6", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.1.0.tgz", + "integrity": "sha512-x4FavbNEeXx/baD/zC/SdrvkjSby8nBn8KcCREqk6UuwvwoAPZmaV8TFCAuo/cpovBRTIY67mHhe86MQQm/68Q==", "dev": true, - "license": "MIT", "dependencies": { - "glob": "7.1.7" + "glob": "10.3.10" } }, "apps/studio/node_modules/ajv": { @@ -934,11 +916,12 @@ } }, "apps/studio/node_modules/eslint-config-next": { - "version": "13.5.6", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.1.0.tgz", + "integrity": "sha512-SBX2ed7DoRFXC6CQSLc/SbLY9Ut6HxNB2wPTcoIWjUMd7aF7O/SIE7111L8FdZ9TXsNV4pulUDnfthpyPtbFUg==", "dev": true, - "license": "MIT", "dependencies": { - "@next/eslint-plugin-next": "13.5.6", + "@next/eslint-plugin-next": "14.1.0", "@rushstack/eslint-patch": "^1.3.3", "@typescript-eslint/parser": "^5.4.2 || ^6.0.0", "eslint-import-resolver-node": "^0.3.6", @@ -1011,25 +994,6 @@ "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, - "apps/studio/node_modules/glob": { - "version": "7.1.7", - "dev": true, - "license": "ISC", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "apps/studio/node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -4468,8 +4432,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "2.1.2", - "license": "MIT", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -4490,11 +4455,13 @@ }, "node_modules/@eslint/eslintrc/node_modules/argparse": { "version": "2.0.1", - "license": "Python-2.0" + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.22.0", - "license": "MIT", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dependencies": { "type-fest": "^0.20.2" }, @@ -4507,7 +4474,8 @@ }, "node_modules/@eslint/eslintrc/node_modules/js-yaml": { "version": "4.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dependencies": { "argparse": "^2.0.1" }, @@ -4517,7 +4485,8 @@ }, "node_modules/@eslint/eslintrc/node_modules/type-fest": { "version": "0.20.2", - "license": "(MIT OR CC0-1.0)", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "engines": { "node": ">=10" }, @@ -4526,8 +4495,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.50.0", - "license": "MIT", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", + "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } @@ -4702,11 +4672,12 @@ } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.11", - "license": "Apache-2.0", + "version": "0.11.14", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", + "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", + "@humanwhocodes/object-schema": "^2.0.2", + "debug": "^4.3.1", "minimatch": "^3.0.5" }, "engines": { @@ -4725,12 +4696,18 @@ } }, "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "license": "BSD-3-Clause" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", + "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==" + }, + "node_modules/@iarna/toml": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", + "integrity": "sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==", + "dev": true }, "node_modules/@isaacs/cliui": { "version": "8.0.2", - "dev": true, "license": "ISC", "dependencies": { "string-width": "^5.1.2", @@ -4746,7 +4723,6 @@ }, "node_modules/@isaacs/cliui/node_modules/ansi-regex": { "version": "6.0.1", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -4757,7 +4733,6 @@ }, "node_modules/@isaacs/cliui/node_modules/strip-ansi": { "version": "7.1.0", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" @@ -6813,7 +6788,6 @@ }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", - "dev": true, "license": "MIT", "optional": true, "engines": { @@ -10378,6 +10352,21 @@ "node": ">=10" } }, + "node_modules/@storybook/cli/node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/@storybook/cli/node_modules/semver": { "version": "7.5.4", "dev": true, @@ -10445,6 +10434,21 @@ "url": "https://opencollective.com/storybook" } }, + "node_modules/@storybook/codemod/node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/@storybook/components": { "version": "7.5.3", "dev": true, @@ -11416,6 +11420,41 @@ "dev": true, "license": "MIT" }, + "node_modules/@supabase/postgres-meta/node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/@supabase/postgres-meta/node_modules/prettier-plugin-sql": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/prettier-plugin-sql/-/prettier-plugin-sql-0.13.0.tgz", + "integrity": "sha512-Ui9603tDD6PFyr7JvIEoE6cIFMQnJVDriG+oLyVThsGo/MIl5ek18JhH3xtox9ux8jvyww/FUFrJzxpZ7FIdvw==", + "dev": true, + "dependencies": { + "node-sql-parser": "^4.4.0", + "sql-formatter": "^11.0.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": "^12.20.0 || ^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + }, + "peerDependencies": { + "prettier": "^2.0.0" + } + }, "node_modules/@supabase/postgrest-js": { "version": "1.9.2", "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.9.2.tgz", @@ -12803,69 +12842,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { - "version": "7.5.4", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC" - }, "node_modules/@typescript-eslint/parser": { "version": "5.62.0", "license": "BSD-2-Clause", @@ -12906,32 +12882,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/@typescript-eslint/types": { "version": "5.62.0", "license": "MIT", @@ -12995,81 +12945,6 @@ "version": "4.0.0", "license": "ISC" }, - "node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": { - "version": "5.1.1", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/estraverse": { - "version": "4.3.0", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { - "version": "6.0.0", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.5.4", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/yallist": { - "version": "4.0.0", - "dev": true, - "license": "ISC" - }, "node_modules/@typescript-eslint/visitor-keys": { "version": "5.62.0", "license": "MIT", @@ -13731,6 +13606,12 @@ "ansi-html": "bin/ansi-html" } }, + "node_modules/ansi-purge": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ansi-purge/-/ansi-purge-1.0.0.tgz", + "integrity": "sha512-kbm4dtp1jcI8ZWhttEPzmga9fwbhGMinIDghOcBng5q9dOsnM6PYV3ih+5TO4D7inGXU9zBmVi7x1Z4dluY85Q==", + "dev": true + }, "node_modules/ansi-red": { "version": "0.1.1", "license": "MIT", @@ -13772,6 +13653,12 @@ "dev": true, "license": "MIT" }, + "node_modules/ansi-truncate": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ansi-truncate/-/ansi-truncate-1.0.1.tgz", + "integrity": "sha512-azOe4swp0S5fXHD+6AJt6NpjNcGpVZJV21K0zXdOoM4bG3xDmptn3pWXCvHMLP7ARAi5dvY5ltAIFVqUvADlXQ==", + "dev": true + }, "node_modules/ansi-wrap": { "version": "0.1.0", "license": "MIT", @@ -14060,6 +13947,16 @@ "version": "0.4.0", "license": "MIT" }, + "node_modules/atomically": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/atomically/-/atomically-2.0.2.tgz", + "integrity": "sha512-Xfmb4q5QV7uqTlVdMSTtO5eF4DCHfNOdaPyKlbFShkzeNP+3lj3yjjcbdjSmEY4+pDBKJ9g26aP+ImTe88UHoQ==", + "dev": true, + "dependencies": { + "stubborn-fs": "^1.2.5", + "when-exit": "^2.0.0" + } + }, "node_modules/autolinker": { "version": "0.28.1", "license": "MIT", @@ -17344,6 +17241,12 @@ "detect-port": "bin/detect-port.js" } }, + "node_modules/dettle": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dettle/-/dettle-1.0.1.tgz", + "integrity": "sha512-/oD3At60ZfhgzpofJtyClNTrIACyMdRe+ih0YiHzAniN0IZnLdLpEzgR6RtGs3kowxUkTnvV/4t1FBxXMUdusQ==", + "dev": true + }, "node_modules/devlop": { "version": "1.1.0", "license": "MIT", @@ -17610,7 +17513,6 @@ }, "node_modules/eastasianwidth": { "version": "0.2.0", - "dev": true, "license": "MIT" }, "node_modules/ecdsa-sig-formatter": { @@ -18343,16 +18245,18 @@ } }, "node_modules/eslint": { - "version": "8.50.0", - "license": "MIT", + "version": "8.56.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", + "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.50.0", - "@humanwhocodes/config-array": "^0.11.11", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.56.0", + "@humanwhocodes/config-array": "^0.11.13", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -18487,6 +18391,7 @@ }, "node_modules/eslint-config-prettier": { "version": "8.10.0", + "dev": true, "license": "MIT", "bin": { "eslint-config-prettier": "bin/cli.js" @@ -18647,6 +18552,7 @@ }, "node_modules/eslint-plugin-react": { "version": "7.28.0", + "dev": true, "license": "MIT", "dependencies": { "array-includes": "^3.1.4", @@ -18683,6 +18589,7 @@ }, "node_modules/eslint-plugin-react/node_modules/doctrine": { "version": "2.1.0", + "dev": true, "license": "Apache-2.0", "dependencies": { "esutils": "^2.0.2" @@ -18693,6 +18600,7 @@ }, "node_modules/eslint-plugin-react/node_modules/resolve": { "version": "2.0.0-next.4", + "dev": true, "license": "MIT", "dependencies": { "is-core-module": "^2.9.0", @@ -18823,7 +18731,8 @@ }, "node_modules/espree": { "version": "9.6.1", - "license": "BSD-2-Clause", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dependencies": { "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", @@ -19274,6 +19183,15 @@ "node": ">= 6" } }, + "node_modules/fast-ignore": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/fast-ignore/-/fast-ignore-1.1.1.tgz", + "integrity": "sha512-Gnvido88waUVtlDv/6VBeXv0TAlQK5lheknMwzHx9948B7uOFjyyLXsYBXixDScEXJB5fMjy4G1OOTH59VKvUA==", + "dev": true, + "dependencies": { + "grammex": "^3.1.2" + } + }, "node_modules/fast-json-parse": { "version": "1.0.3", "dev": true, @@ -19565,6 +19483,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/find-up-json": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/find-up-json/-/find-up-json-2.0.2.tgz", + "integrity": "sha512-UpHMIdzLzZNHZ0vXVv3kHr2vq2MWA+hA8zlzlPH5XMGyYisIr/7/dNm5AjWR3ae6Onie9a1zgtExOqix+8ESQw==", + "dev": true + }, "node_modules/flat-cache": { "version": "3.1.0", "license": "MIT", @@ -19611,7 +19535,6 @@ }, "node_modules/foreground-child": { "version": "3.1.1", - "dev": true, "license": "ISC", "dependencies": { "cross-spawn": "^7.0.0", @@ -20069,6 +19992,15 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-current-package": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-current-package/-/get-current-package-1.0.0.tgz", + "integrity": "sha512-mEZ43mmPMdRz+7vouBd/fhnEMRF0omBzcwwwf2GmbWSeZJGdWHRp9RGLZxW7ZnnZ14jPc3GreHh0s/7u7PZJpQ==", + "dev": true, + "dependencies": { + "find-up-json": "^2.0.1" + } + }, "node_modules/get-intrinsic": { "version": "1.2.1", "license": "MIT", @@ -20256,7 +20188,6 @@ }, "node_modules/glob": { "version": "10.3.10", - "dev": true, "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", @@ -20291,7 +20222,6 @@ }, "node_modules/glob/node_modules/brace-expansion": { "version": "2.0.1", - "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" @@ -20299,7 +20229,6 @@ }, "node_modules/glob/node_modules/minimatch": { "version": "9.0.3", - "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" @@ -20371,6 +20300,12 @@ "version": "4.2.11", "license": "ISC" }, + "node_modules/grammex": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/grammex/-/grammex-3.1.2.tgz", + "integrity": "sha512-vAvqD8s6mRbEeUymiRx78Z/QXVFNU3VCsMdkAlxzBMcdXvVVRfB01n+hADQw8fHrk7QxSdKzmmnkOKVjtPnRHg==", + "dev": true + }, "node_modules/graphemer": { "version": "1.4.0", "license": "MIT" @@ -21485,6 +21420,16 @@ "node": ">=8" } }, + "node_modules/import-meta-resolve": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.0.0.tgz", + "integrity": "sha512-okYUR7ZQPH+efeuMJGlq4f8ubUgO50kByRPyt/Cy1Io4PSRsPjxME+YlVaCOx+NIToW7hCsZNFJyTPFFKepRSA==", + "dev": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/imurmurhash": { "version": "0.1.4", "license": "MIT", @@ -21515,6 +21460,12 @@ "version": "2.0.4", "license": "ISC" }, + "node_modules/ini-simple-parser": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ini-simple-parser/-/ini-simple-parser-1.0.0.tgz", + "integrity": "sha512-cZUGzkBd1W8FoIbFNMbscMvIGwp+riO/4PaPAy2owQp0sja+ni6Yty11GBNnxaI1ePkSVXzPb8iMOOYuYw/MOQ==", + "dev": true + }, "node_modules/inline-style-parser": { "version": "0.1.1", "license": "MIT" @@ -21553,6 +21504,12 @@ "loose-envify": "^1.0.0" } }, + "node_modules/ionstore": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ionstore/-/ionstore-1.0.0.tgz", + "integrity": "sha512-ikEvmeZFh9u5SkjKbFqJlmmhaQTulB3P7QoSoZ/xL8EDP5uj5QWbPeKcQ8ZJtszBLHRRnhIJJE8P1dhFx/oCMw==", + "dev": true + }, "node_modules/ip": { "version": "2.0.0", "license": "MIT" @@ -22253,7 +22210,6 @@ }, "node_modules/jackspeak": { "version": "2.3.6", - "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" @@ -24217,6 +24173,12 @@ "version": "0.4.1", "license": "MIT" }, + "node_modules/json-sorted-stringify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-sorted-stringify/-/json-sorted-stringify-1.0.0.tgz", + "integrity": "sha512-r27DgPdI80AXd6Hm0zJ7nPCYTBFUersR7sn7xcYyafvcgYOvwmCXB+DKWazAe0YaCNHbxH5Qzt7AIhUzPD1ETg==", + "dev": true + }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "license": "MIT" @@ -24360,6 +24322,12 @@ "node": ">= 0.4.0" } }, + "node_modules/kasi": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/kasi/-/kasi-1.1.0.tgz", + "integrity": "sha512-SvmC8+vhkDariSTz2182qyQ+mhwZ4W8TWaIHJcz358bYBeccQ8WBYj7uTtzHoCmpPHaoCm3PaOhzRg7Z8F4Lww==", + "dev": true + }, "node_modules/keyv": { "version": "4.5.3", "license": "MIT", @@ -27236,7 +27204,6 @@ }, "node_modules/minipass": { "version": "7.0.4", - "dev": true, "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" @@ -27600,11 +27567,6 @@ "version": "1.4.0", "license": "MIT" }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "dev": true, - "license": "MIT" - }, "node_modules/nearley": { "version": "2.20.1", "license": "MIT", @@ -28071,9 +28033,10 @@ "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==" }, "node_modules/node-sql-parser": { - "version": "4.11.0", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/node-sql-parser/-/node-sql-parser-4.18.0.tgz", + "integrity": "sha512-2YEOR5qlI1zUFbGMLKNfsrR5JUvFg9LxIRVE+xJe962pfVLH0rnItqLzv96XVs1Y1UIR8FxsXAuvX/lYAWZ2BQ==", "dev": true, - "license": "Apache-2.0", "dependencies": { "big-integer": "^1.6.48" }, @@ -29255,7 +29218,6 @@ }, "node_modules/path-scurry": { "version": "1.10.1", - "dev": true, "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^9.1.1 || ^10.0.0", @@ -29270,7 +29232,6 @@ }, "node_modules/path-scurry/node_modules/lru-cache": { "version": "10.0.1", - "dev": true, "license": "ISC", "engines": { "node": "14 || >=16.14" @@ -29497,6 +29458,16 @@ "node": ">=4" } }, + "node_modules/pioppo": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pioppo/-/pioppo-1.1.0.tgz", + "integrity": "sha512-8gZ58S4GBMkCGAEwBi98YgNFfXwcNql2sCXstolxnGUrsBnHA/BrKjsN4EbfCsKjQ4uERrEDfeh444ymGwNMdA==", + "dev": true, + "dependencies": { + "dettle": "^1.0.1", + "when-exit": "^2.1.0" + } + }, "node_modules/pirates": { "version": "4.0.6", "license": "MIT", @@ -29797,45 +29768,112 @@ } }, "node_modules/prettier": { - "version": "2.8.8", + "version": "4.0.0-alpha.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-4.0.0-alpha.8.tgz", + "integrity": "sha512-7FFBkQb0Eg0wJRYzA7ucc31nqTjWgoSpmS0ey9OATHU6WiV0z53Uzo5hA3tZs/pbhhIG7YvOIBNmkRQ7Dr/k5A==", "dev": true, - "license": "MIT", + "dependencies": { + "@prettier/cli": "^0.3.0" + }, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/prettier-plugin-sql": { - "version": "0.13.0", + "node_modules/prettier-plugin-sql-cst": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/prettier-plugin-sql-cst/-/prettier-plugin-sql-cst-0.11.1.tgz", + "integrity": "sha512-MZ8058LfIlNyGILQBeKE15PUTKGbP/QgflKcjkIl+JKgT4jiN6vecgfEhpMnhZLvopxX0xjuDyKM+/4mE0j6Ug==", "dev": true, - "license": "MIT", "dependencies": { - "node-sql-parser": "^4.4.0", - "sql-formatter": "^11.0.2", - "tslib": "^2.4.0" - }, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/unts" - }, - "peerDependencies": { - "prettier": "^2.0.0" + "prettier": "^3.0.3", + "sql-parser-cst": "^0.24.0" } }, - "node_modules/prettier-plugin-sql-cst": { - "version": "0.5.0", + "node_modules/prettier-plugin-sql-cst/node_modules/prettier": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", + "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", + "dev": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier/node_modules/@prettier/cli": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@prettier/cli/-/cli-0.3.0.tgz", + "integrity": "sha512-8qq527QT5n8paE9eoHeulmGw7a3MroVk5+8ITf+xoWJn1gcVaZiOP6vb9OlwZv49hhdRZ1WX+0MyisSSXL/4fA==", "dev": true, - "license": "GPL-3.0-or-later", "dependencies": { - "prettier": "^2.8.2", - "sql-parser-cst": "^0.12.0" + "@iarna/toml": "^2.2.5", + "atomically": "^2.0.2", + "fast-ignore": "^1.1.1", + "find-up-json": "^2.0.2", + "import-meta-resolve": "^4.0.0", + "is-binary-path": "^2.1.0", + "js-yaml": "^4.1.0", + "json-sorted-stringify": "^1.0.0", + "json5": "^2.2.3", + "kasi": "^1.1.0", + "pioppo": "^1.1.0", + "specialist": "^1.4.0", + "tiny-editorconfig": "^1.0.0", + "tiny-jsonc": "^1.0.1", + "tiny-readdir-glob": "^1.2.1", + "tiny-spinner": "^2.0.3", + "worktank": "^2.6.0", + "zeptomatch": "^1.2.2" + }, + "bin": { + "prettier-next": "dist/bin.js" + }, + "peerDependencies": { + "prettier": "^3.1.0 || ^4.0.0" + } + }, + "node_modules/prettier/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/prettier/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/prettier/node_modules/prettier": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", + "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", + "dev": true, + "peer": true, + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" } }, "node_modules/pretty-error": { @@ -29921,6 +29959,12 @@ "version": "1.0.1", "license": "ISC" }, + "node_modules/promise-make-naked": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/promise-make-naked/-/promise-make-naked-2.1.1.tgz", + "integrity": "sha512-BLvgZSNRkQNM5RGL4Cz8wK76WSb+t3VeMJL+/kxRBHI5+nliqZezranGGtiu/ePeFo5+CaLRvvGMzXrBuu2tAA==", + "dev": true + }, "node_modules/promise-retry": { "version": "2.0.1", "license": "MIT", @@ -33314,7 +33358,6 @@ }, "node_modules/signal-exit": { "version": "4.1.0", - "dev": true, "license": "ISC", "engines": { "node": ">=14" @@ -33625,6 +33668,18 @@ "dev": true, "license": "CC0-1.0" }, + "node_modules/specialist": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/specialist/-/specialist-1.4.0.tgz", + "integrity": "sha512-RO76zlzjdw4acNYH2oiDqmSc3jQTymiJapNI6w47XB1iOKOaWIYA+eZ07b8pCPCsHZPwNdxHTJihS0LHFelFOA==", + "dev": true, + "dependencies": { + "tiny-bin": "^1.7.0", + "tiny-colors": "^2.1.2", + "tiny-parse-argv": "^2.4.0", + "tiny-updater": "^3.5.1" + } + }, "node_modules/split.js": { "version": "1.6.5", "license": "MIT" @@ -33643,8 +33698,9 @@ }, "node_modules/sql-formatter": { "version": "11.0.2", + "resolved": "https://registry.npmjs.org/sql-formatter/-/sql-formatter-11.0.2.tgz", + "integrity": "sha512-6QumAdGHEnI5dXEq1d0aBRP876AyA9Wp/UE7wopKNA2Mp9sKGRKVqGgoWHk4dr0J0nceesC85Y0p36qmGoNqhw==", "dev": true, - "license": "MIT", "dependencies": { "argparse": "^2.0.1", "nearley": "^2.20.1" @@ -33655,13 +33711,15 @@ }, "node_modules/sql-formatter/node_modules/argparse": { "version": "2.0.1", - "dev": true, - "license": "Python-2.0" + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/sql-parser-cst": { - "version": "0.12.1", - "dev": true, - "license": "GPL-2.0-or-later" + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/sql-parser-cst/-/sql-parser-cst-0.24.0.tgz", + "integrity": "sha512-38NNWamo0PKv80Zn8r1iXgatkWEB04CPhun8nEQhEJlYBMSIV4OOt4g3diynjVHJSunNSQqAjKcwmhM0EeLCtg==", + "dev": true }, "node_modules/sqlstring": { "version": "2.3.3", @@ -33797,6 +33855,12 @@ "node": ">= 0.8" } }, + "node_modules/stdin-blocker": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/stdin-blocker/-/stdin-blocker-2.0.0.tgz", + "integrity": "sha512-fZ3txWyDSxOll6+ajX9akA5YzchyoEpVNsH8eWNY/ZnzlRoM0eW/zF8bm852KVpYutjNFQFvEF/RdZtlqxIZkQ==", + "dev": true + }, "node_modules/stickyfill": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/stickyfill/-/stickyfill-1.1.1.tgz", @@ -33892,7 +33956,6 @@ }, "node_modules/string-width": { "version": "5.1.2", - "dev": true, "license": "MIT", "dependencies": { "eastasianwidth": "^0.2.0", @@ -33909,7 +33972,6 @@ "node_modules/string-width-cjs": { "name": "string-width", "version": "4.2.3", - "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -33922,12 +33984,10 @@ }, "node_modules/string-width-cjs/node_modules/emoji-regex": { "version": "8.0.0", - "dev": true, "license": "MIT" }, "node_modules/string-width/node_modules/ansi-regex": { "version": "6.0.1", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -33938,7 +33998,6 @@ }, "node_modules/string-width/node_modules/strip-ansi": { "version": "7.1.0", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" @@ -34048,7 +34107,6 @@ "node_modules/strip-ansi-cjs": { "name": "strip-ansi", "version": "6.0.1", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -34114,6 +34172,12 @@ "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==", "dev": true }, + "node_modules/stubborn-fs": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/stubborn-fs/-/stubborn-fs-1.2.5.tgz", + "integrity": "sha512-H2N9c26eXjzL/S/K+i/RHHcFanE74dptvvjM8iwzwbVcWY/zjBbgRqF3K0DY4+OD+uTTASTBvDoxPDaPN02D7g==", + "dev": true + }, "node_modules/studio": { "resolved": "apps/studio", "link": true @@ -35156,10 +35220,118 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/tiny-bin": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/tiny-bin/-/tiny-bin-1.7.0.tgz", + "integrity": "sha512-6zK6sJysdpFy+5cYzYtbsaLTcTBBRAzsFKIHUBeo/UPhWqV/lyRqWNvndWRk4jeXidYPsRz7d8YDSs49jv8M2w==", + "dev": true, + "dependencies": { + "ansi-purge": "^1.0.0", + "get-current-package": "^1.0.0", + "tiny-colors": "^2.1.2", + "tiny-levenshtein": "^1.0.0", + "tiny-parse-argv": "^2.3.0", + "tiny-updater": "^3.5.1" + } + }, + "node_modules/tiny-colors": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/tiny-colors/-/tiny-colors-2.1.2.tgz", + "integrity": "sha512-6peGRBtkYBJpVrQUWOPKrC0ECo6WotUlXxirVTKvihjdgxQETpKtLdCKIb68IHjJYH1AOE7GM7RnxFvkGHsqOg==", + "dev": true + }, + "node_modules/tiny-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/tiny-cursor/-/tiny-cursor-2.0.0.tgz", + "integrity": "sha512-6RKgFWBt6I1oYpaNZJvvp5x/jvzYDp+rjAVDam+7cmE0mrtlu8Lmpv81hQuvFuPa8Fuc/sd2shRWbdWTZqSNLg==", + "dev": true, + "dependencies": { + "when-exit": "^2.0.0" + } + }, + "node_modules/tiny-editorconfig": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tiny-editorconfig/-/tiny-editorconfig-1.0.0.tgz", + "integrity": "sha512-rxpWaSurnvPUkL2/qydRH10llK7MD1XfE38zoWTsp/ZWWYnnwPBzGUePBOcXFaNA3cJQm8ItqrofGeRJ6AVaew==", + "dev": true, + "dependencies": { + "ini-simple-parser": "^1.0.0", + "zeptomatch": "^1.1.3" + } + }, "node_modules/tiny-invariant": { "version": "1.3.1", "license": "MIT" }, + "node_modules/tiny-jsonc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tiny-jsonc/-/tiny-jsonc-1.0.1.tgz", + "integrity": "sha512-ik6BCxzva9DoiEfDX/li0L2cWKPPENYvixUprFdl3YPi4bZZUhDnNI9YUkacrv+uIG90dnxR5mNqaoD6UhD6Bw==", + "dev": true + }, + "node_modules/tiny-levenshtein": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tiny-levenshtein/-/tiny-levenshtein-1.0.0.tgz", + "integrity": "sha512-27KxXZhuXCP+xol3k4jMWms8+B6H2qEUlBMTmB5YT3uvFXFNft4Hw/MqurrHkDdC01nx1HIADcE1wR40byJf4Q==", + "dev": true + }, + "node_modules/tiny-parse-argv": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tiny-parse-argv/-/tiny-parse-argv-2.4.0.tgz", + "integrity": "sha512-WTEsnmeHNr99hLQIDA+gnsS+fDsCDITlqgI+zEhx9M6ErPt0heoNZ1PGvql6wcf95sIx40J0MLYXaPveGwtpoA==", + "dev": true + }, + "node_modules/tiny-readdir": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tiny-readdir/-/tiny-readdir-2.4.0.tgz", + "integrity": "sha512-LS7NQKLyLy/EepnIbOWDdkR4k8KPwPYkYCMZzQOttE5PhmXBbKqGdRk6ndIsTpB54hL208gREAtMftlb+aELrw==", + "dev": true, + "dependencies": { + "promise-make-naked": "^2.1.1" + } + }, + "node_modules/tiny-readdir-glob": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/tiny-readdir-glob/-/tiny-readdir-glob-1.2.1.tgz", + "integrity": "sha512-KOjDu6u9iDSDr8+dUrkiDGohND70RMd9Iu6ZPu+HFZZktXQ9h+wbMWcrpCwcmo1QkE5+4ujuU8sXb8HgD3+IKA==", + "dev": true, + "dependencies": { + "tiny-readdir": "^2.4.0", + "zeptomatch": "^1.2.2" + } + }, + "node_modules/tiny-spinner": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/tiny-spinner/-/tiny-spinner-2.0.3.tgz", + "integrity": "sha512-zuhtClm08obM7aCzgRAbAmOpYm0ekAh/OTLZEJ/8SuVD+cxUdlqGGN5PRnc2Ate8xmbG3+ldPBnlwmHgJrftpg==", + "dev": true, + "dependencies": { + "stdin-blocker": "^2.0.0", + "tiny-colors": "^2.1.2", + "tiny-cursor": "^2.0.0", + "tiny-truncate": "^1.0.2" + } + }, + "node_modules/tiny-truncate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tiny-truncate/-/tiny-truncate-1.0.2.tgz", + "integrity": "sha512-XR2fjChcOjuz8Eu56zGwacYTKUHlhuzQ3VpD79yUwvWlLY3gCWorzRfBNXkmbwFjxzfmYZrC00cA4s/ET6mogw==", + "dev": true, + "dependencies": { + "ansi-truncate": "^1.0.1" + } + }, + "node_modules/tiny-updater": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/tiny-updater/-/tiny-updater-3.5.1.tgz", + "integrity": "sha512-kh1922FSNPTmrdr353x+xJRTrrVFl9zq/Q1Vz47YNWhTO0jn3ZyZd6Cahe8qW5MLXg+gia+0G7b6HIgW7pbBMg==", + "dev": true, + "dependencies": { + "ionstore": "^1.0.0", + "tiny-colors": "^2.0.2", + "when-exit": "^2.1.1" + } + }, "node_modules/tiny-warning": { "version": "1.0.3", "license": "MIT" @@ -35318,6 +35490,18 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/ts-api-utils": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.3.tgz", + "integrity": "sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==", + "dev": true, + "engines": { + "node": ">=16.13.0" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, "node_modules/ts-dedent": { "version": "2.2.0", "license": "MIT", @@ -37138,6 +37322,12 @@ "node": ">=4.0" } }, + "node_modules/webworker-shim": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/webworker-shim/-/webworker-shim-1.1.0.tgz", + "integrity": "sha512-LhPJDED3cM0+K9w4JjIio+RYPqvr712b3lyM+JjMR/rSD9elrSYHrrwE9qu3inPSSf60xqePgFgEwuAg17AuhA==", + "dev": true + }, "node_modules/whatwg-encoding": { "version": "2.0.0", "dev": true, @@ -37169,6 +37359,12 @@ "node": ">=12" } }, + "node_modules/when-exit": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/when-exit/-/when-exit-2.1.2.tgz", + "integrity": "sha512-u9J+toaf3CCxCAzM/484qNAxQE75rFdVgiFEEV8Xps2gzYhf0tx73s1WXDQhkwV17E3MxRMz40m7Ekd2/121Lg==", + "dev": true + }, "node_modules/which": { "version": "2.0.2", "license": "ISC", @@ -37282,9 +37478,18 @@ "dev": true, "license": "MIT" }, + "node_modules/worktank": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/worktank/-/worktank-2.6.0.tgz", + "integrity": "sha512-bHqVyWbviQlUV7+wbd1yoZhjPXXk7ENVCNrlBARfVAg69AfOtnEMLc0hWo9ihaqmlO8WggdYGy/K+avWFSgBBQ==", + "dev": true, + "dependencies": { + "promise-make-naked": "^2.0.0", + "webworker-shim": "^1.1.0" + } + }, "node_modules/wrap-ansi": { "version": "8.1.0", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", @@ -37301,7 +37506,6 @@ "node_modules/wrap-ansi-cjs": { "name": "wrap-ansi", "version": "7.0.0", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -37317,7 +37521,6 @@ }, "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { "version": "4.3.0", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -37331,12 +37534,10 @@ }, "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { "version": "8.0.0", - "dev": true, "license": "MIT" }, "node_modules/wrap-ansi-cjs/node_modules/string-width": { "version": "4.2.3", - "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -37349,7 +37550,6 @@ }, "node_modules/wrap-ansi/node_modules/ansi-regex": { "version": "6.0.1", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -37360,7 +37560,6 @@ }, "node_modules/wrap-ansi/node_modules/ansi-styles": { "version": "6.2.1", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -37371,7 +37570,6 @@ }, "node_modules/wrap-ansi/node_modules/strip-ansi": { "version": "7.1.0", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" @@ -37571,6 +37769,15 @@ "version": "0.2.2", "license": "MIT" }, + "node_modules/zeptomatch": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/zeptomatch/-/zeptomatch-1.2.2.tgz", + "integrity": "sha512-0ETdzEO0hdYmT8aXHHf5aMjpX+FHFE61sG4qKFAoJD2Umt3TWdCmH7ADxn2oUiWTlqBGC+SGr8sYMfr+37J8pQ==", + "dev": true, + "dependencies": { + "grammex": "^3.1.1" + } + }, "node_modules/zod": { "version": "3.22.4", "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz", @@ -37688,9 +37895,9 @@ "@tailwindcss/forms": "^0.5.0", "@tailwindcss/typography": "^0.5.9", "deepmerge": "^4.2.2", - "eslint-config-next": "^13.5.6", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-react": "7.28.0", + "eslint-config-next": "^14.1.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-react": "7.33.2", "mini-svg-data-uri": "^1.4.3", "tailwindcss-radix": "^2.0.0" }, @@ -37700,11 +37907,11 @@ } }, "packages/config/node_modules/@next/eslint-plugin-next": { - "version": "13.5.6", - "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.5.6.tgz", - "integrity": "sha512-ng7pU/DDsxPgT6ZPvuprxrkeew3XaRf4LAT4FabaEO/hAbvVx4P7wqnqdbTdDn1kgTvsI4tpIgT4Awn/m0bGbg==", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-14.1.0.tgz", + "integrity": "sha512-x4FavbNEeXx/baD/zC/SdrvkjSby8nBn8KcCREqk6UuwvwoAPZmaV8TFCAuo/cpovBRTIY67mHhe86MQQm/68Q==", "dependencies": { - "glob": "7.1.7" + "glob": "10.3.10" } }, "packages/config/node_modules/doctrine": { @@ -37718,11 +37925,11 @@ } }, "packages/config/node_modules/eslint-config-next": { - "version": "13.5.6", - "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.5.6.tgz", - "integrity": "sha512-o8pQsUHTo9aHqJ2YiZDym5gQAMRf7O2HndHo/JZeY7TDD+W4hk6Ma8Vw54RHiBeb7OWWO5dPirQB+Is/aVQ7Kg==", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-14.1.0.tgz", + "integrity": "sha512-SBX2ed7DoRFXC6CQSLc/SbLY9Ut6HxNB2wPTcoIWjUMd7aF7O/SIE7111L8FdZ9TXsNV4pulUDnfthpyPtbFUg==", "dependencies": { - "@next/eslint-plugin-next": "13.5.6", + "@next/eslint-plugin-next": "14.1.0", "@rushstack/eslint-patch": "^1.3.3", "@typescript-eslint/parser": "^5.4.2 || ^6.0.0", "eslint-import-resolver-node": "^0.3.6", @@ -37742,32 +37949,15 @@ } } }, - "packages/config/node_modules/eslint-config-next/node_modules/eslint-plugin-react": { - "version": "7.33.2", - "license": "MIT", - "dependencies": { - "array-includes": "^3.1.6", - "array.prototype.flatmap": "^1.3.1", - "array.prototype.tosorted": "^1.1.1", - "doctrine": "^2.1.0", - "es-iterator-helpers": "^1.0.12", - "estraverse": "^5.3.0", - "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.1.2", - "object.entries": "^1.1.6", - "object.fromentries": "^2.0.6", - "object.hasown": "^1.1.2", - "object.values": "^1.1.6", - "prop-types": "^15.8.1", - "resolve": "^2.0.0-next.4", - "semver": "^6.3.1", - "string.prototype.matchall": "^4.0.8" - }, - "engines": { - "node": ">=4" + "packages/config/node_modules/eslint-config-prettier": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz", + "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==", + "bin": { + "eslint-config-prettier": "bin/cli.js" }, "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + "eslint": ">=7.0.0" } }, "packages/config/node_modules/eslint-import-resolver-typescript": { @@ -37794,23 +37984,33 @@ "eslint-plugin-import": "*" } }, - "packages/config/node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", + "packages/config/node_modules/eslint-plugin-react": { + "version": "7.33.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.33.2.tgz", + "integrity": "sha512-73QQMKALArI8/7xGLNI/3LylrEYrlKZSb5C9+q3OtOewTnMQi5cT+aE9E41sLCmli3I9PGGmD1yiZydyo4FEPw==", "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "es-iterator-helpers": "^1.0.12", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.1", + "string.prototype.matchall": "^4.0.8" }, "engines": { - "node": "*" + "node": ">=4" }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" } }, "packages/config/node_modules/globby": { @@ -38434,6 +38634,21 @@ } } }, + "packages/ui/node_modules/prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "packages/ui/node_modules/react-day-picker": { "version": "8.8.0", "license": "MIT", @@ -38523,12 +38738,12 @@ "@testdeck/jest": "^0.3.3", "@types/jest": "^29.5.4", "@types/node": "^17.0.24", - "@typescript-eslint/eslint-plugin": "^5.10.0", - "@typescript-eslint/parser": "^5.10.0", + "@typescript-eslint/eslint-plugin": "^6.19.1", + "@typescript-eslint/parser": "^6.19.1", "allure-commandline": "^2.17.2", "allure-js-commons": "^2.0.0-beta.14", "cross-fetch": "^3.1.5", - "eslint": "^8.45.0", + "eslint": "^8.56.0", "jest-allure2-adapter": "^0.3.12", "jest-environment-jsdom": "^29.7.0", "postgres": "^3.0.5", @@ -38555,6 +38770,205 @@ "dev": true, "license": "MIT" }, + "tests/node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.19.1.tgz", + "integrity": "sha512-roQScUGFruWod9CEyoV5KlCYrubC/fvG8/1zXuT0WTcxX87GnMMmnksMwSg99lo1xiKrBzw2icsJPMAw1OtKxg==", + "dev": true, + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/type-utils": "6.19.1", + "@typescript-eslint/utils": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "tests/node_modules/@typescript-eslint/parser": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.1.tgz", + "integrity": "sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/typescript-estree": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "tests/node_modules/@typescript-eslint/scope-manager": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.1.tgz", + "integrity": "sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "tests/node_modules/@typescript-eslint/type-utils": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.19.1.tgz", + "integrity": "sha512-0vdyld3ecfxJuddDjACUvlAeYNrHP/pDeQk2pWBR2ESeEzQhg52DF53AbI9QCBkYE23lgkhLCZNkHn2hEXXYIg==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "6.19.1", + "@typescript-eslint/utils": "6.19.1", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "tests/node_modules/@typescript-eslint/types": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.1.tgz", + "integrity": "sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "tests/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.1.tgz", + "integrity": "sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "tests/node_modules/@typescript-eslint/utils": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.19.1.tgz", + "integrity": "sha512-JvjfEZuP5WoMqwh9SPAPDSHSg9FBHHGhjPugSRxu5jMfjvBpq5/sGTD+9M9aQ5sh6iJ8AY/Kk/oUYVEMAPwi7w==", + "dev": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/typescript-estree": "6.19.1", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "tests/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.1.tgz", + "integrity": "sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "tests/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, "tests/node_modules/jest-allure2-adapter": { "version": "0.3.12", "dev": true, @@ -38572,6 +38986,54 @@ "version": "10.17.60", "dev": true, "license": "MIT" + }, + "tests/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "tests/node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "tests/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "tests/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true } } } diff --git a/package.json b/package.json index 3cf4b38aec..8dafa938c3 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,10 @@ "generate:types": "supabase gen types typescript --local > ./supabase/functions/common/database-types.ts" }, "devDependencies": { - "eslint": "^8.45.0", + "eslint": "^8.56.0", "eslint-config-custom": "*", - "prettier": "^2.8.8", - "prettier-plugin-sql-cst": "^0.5.0", + "prettier": "^4.0.0-alpha.8", + "prettier-plugin-sql-cst": "^0.11.0", "sass": "^1.68.0", "supabase": "^1.45.2", "turbo": "^1.11.2" diff --git a/packages/config/package.json b/packages/config/package.json index 6d3799f459..ffd42f7d27 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -12,9 +12,9 @@ "@tailwindcss/forms": "^0.5.0", "@tailwindcss/typography": "^0.5.9", "deepmerge": "^4.2.2", - "eslint-config-next": "^13.5.6", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-react": "7.28.0", + "eslint-config-next": "^14.1.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-react": "7.33.2", "mini-svg-data-uri": "^1.4.3", "tailwindcss-radix": "^2.0.0" }, diff --git a/tests/package.json b/tests/package.json index 9fa13d5a4c..9a6cfcacf3 100644 --- a/tests/package.json +++ b/tests/package.json @@ -22,12 +22,12 @@ "@testdeck/jest": "^0.3.3", "@types/jest": "^29.5.4", "@types/node": "^17.0.24", - "@typescript-eslint/eslint-plugin": "^5.10.0", - "@typescript-eslint/parser": "^5.10.0", + "@typescript-eslint/eslint-plugin": "^6.19.1", + "@typescript-eslint/parser": "^6.19.1", "allure-commandline": "^2.17.2", "allure-js-commons": "^2.0.0-beta.14", "cross-fetch": "^3.1.5", - "eslint": "^8.45.0", + "eslint": "^8.56.0", "ts-jest": "^29.1.1", "jest-allure2-adapter": "^0.3.12", "jest-environment-jsdom": "^29.7.0",