From 31a35319fdefcf30dfa43280c497c0ef84ee6bc5 Mon Sep 17 00:00:00 2001 From: Giancarlo Buomprisco Date: Tue, 28 Jan 2025 17:19:19 +0700 Subject: [PATCH] 1. Fixed docs navigation (#119) 2. Removed rule "@typescript-eslint/ prefer-nullish-coalescing", it's a source of bugs --- apps/web/app/(marketing)/docs/_components/docs-navigation.tsx | 2 +- package.json | 2 +- tooling/eslint/base.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/app/(marketing)/docs/_components/docs-navigation.tsx b/apps/web/app/(marketing)/docs/_components/docs-navigation.tsx index 10d2d0824..7f1cae9a0 100644 --- a/apps/web/app/(marketing)/docs/_components/docs-navigation.tsx +++ b/apps/web/app/(marketing)/docs/_components/docs-navigation.tsx @@ -27,7 +27,7 @@ function Node({ prefix: string; }) { const url = `${prefix}/${node.slug}`; - const label = node.label ?? node.title; + const label = node.label ? node.label : node.title; const Container = (props: React.PropsWithChildren) => { if (node.collapsible) { diff --git a/package.json b/package.json index cd29c570a..c9cdcfccb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "next-supabase-saas-kit-turbo", - "version": "2.0.1", + "version": "2.0.2", "private": true, "sideEffects": false, "engines": { diff --git a/tooling/eslint/base.js b/tooling/eslint/base.js index fb3f56484..dcae39811 100644 --- a/tooling/eslint/base.js +++ b/tooling/eslint/base.js @@ -25,6 +25,7 @@ const config = { '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/non-nullable-type-assertion-style': 'off', '@typescript-eslint/only-throw-error': 'off', + '@typescript-eslint/prefer-nullish-coalescing': 'off', '@typescript-eslint/no-unused-vars': [ 'error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' },