From aa41bfc637253cd8ec94ceae596939d410509077 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Thu, 20 Feb 2025 20:14:09 -0800 Subject: [PATCH] Add jsx-indent rule --- .../(protected)/projects/[projectId]/(metrics)/globe.tsx | 4 ++-- .../projects/[projectId]/users/[userId]/page-client.tsx | 2 +- .../neon/projects/transfer/confirm/page-client.tsx | 8 ++++---- apps/dashboard/src/app/(main)/wizard-congrats/actions.tsx | 4 ++-- apps/dashboard/src/app/(main)/wizard-congrats/page.tsx | 2 +- eslint-configs/next.js | 3 +++ 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(metrics)/globe.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(metrics)/globe.tsx index 920416ff7..de5d69483 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(metrics)/globe.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/(metrics)/globe.tsx @@ -126,7 +126,7 @@ export function GlobeSection({ countryData, totalUsers, children }: {countryData setErrorRefreshCount(e => e + 1); if (process.env.NODE_ENV === "development") { setTimeout(() => { - alert("Globe rendering error — it has now been refreshed. TODO let's fix this") + alert("Globe rendering error — it has now been refreshed. TODO let's fix this"); }, 1000); } } @@ -303,7 +303,7 @@ export function GlobeSection({ countryData, totalUsers, children }: {countryData 100% {box-shadow: 0 0 0 8px #0000} } `} - LIVE + LIVE diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx index 98869aa50..217de51e6 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/users/[userId]/page-client.tsx @@ -220,7 +220,7 @@ function MetadataEditor({ title, initialValue, onUpdate, hint }: MetadataEditorP setValue(formatJson(initialValue)); setHasChanged(false); }}> - Revert + Revert ) : ( - To continue, please sign in or create a Stack Auth account. + To continue, please sign in or create a Stack Auth account. )} } diff --git a/apps/dashboard/src/app/(main)/wizard-congrats/actions.tsx b/apps/dashboard/src/app/(main)/wizard-congrats/actions.tsx index 8034e646b..cf14721ee 100644 --- a/apps/dashboard/src/app/(main)/wizard-congrats/actions.tsx +++ b/apps/dashboard/src/app/(main)/wizard-congrats/actions.tsx @@ -8,10 +8,10 @@ export default function Actions() { return (
); diff --git a/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx b/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx index dee5db5ac..5bfb75fd9 100644 --- a/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx +++ b/apps/dashboard/src/app/(main)/wizard-congrats/page.tsx @@ -28,7 +28,7 @@ export default function WizardCongratsPage() { - Congrats! 🎉 + Congrats! 🎉 diff --git a/eslint-configs/next.js b/eslint-configs/next.js index 15d1fc1a8..b7790e7f4 100644 --- a/eslint-configs/next.js +++ b/eslint-configs/next.js @@ -2,4 +2,7 @@ module.exports = { extends: [ "next/core-web-vitals", ], + rules: { + "react/jsx-indent": ["error", 2], + }, };