[PR #6647] [MERGED] chore: remove unused variables #32403

Closed
opened 2026-04-17 23:13:33 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6647
Author: @jonathansamines
Created: 12/9/2025
Status: Merged
Merged: 12/9/2025
Merged by: @Bekacru

Base: canaryHead: chore/remove-unused-vars


📝 Commits (1)

  • 1cbe198 chore: remove unused variables

📊 Changes

116 files changed (+332 additions, -567 deletions)

View changed files

📝 biome.json (+2 -1)
📝 demo/expo/metro.config.js (+0 -1)
📝 demo/nextjs/app/(auth)/forget-password/page.tsx (+1 -1)
📝 demo/nextjs/app/(auth)/two-factor/otp/page.tsx (+1 -1)
📝 demo/nextjs/app/admin/page.tsx (+0 -7)
📝 demo/nextjs/app/apps/register/page.tsx (+1 -12)
📝 demo/nextjs/app/dashboard/organization-card.tsx (+0 -3)
📝 demo/nextjs/app/dashboard/user-card.tsx (+5 -5)
📝 demo/nextjs/app/oauth/authorize/page.tsx (+1 -1)
📝 demo/nextjs/tailwind.config.ts (+0 -1)
📝 demo/stateless/src/app/dashboard/page.tsx (+1 -1)
📝 docs/app/api/analytics/conversation/route.ts (+1 -1)
📝 docs/app/api/analytics/event/route.ts (+1 -1)
📝 docs/app/api/analytics/feedback/route.ts (+1 -1)
📝 docs/app/api/chat/route.ts (+1 -1)
📝 docs/app/blog/_components/changelog-layout.tsx (+0 -12)
📝 docs/app/changelogs/[[...slug]]/page.tsx (+0 -1)
📝 docs/app/changelogs/_components/changelog-layout.tsx (+0 -12)
📝 docs/app/enterprise/_components/enterprise-form.tsx (+1 -1)
📝 docs/components/builder/sign-up.tsx (+2 -13)

...and 80 more files

📄 Description

Summary by cubic

Removed unused imports, variables, and parameters across demos, docs, packages, and tests, and enabled Biome’s noUnusedVariables rule. This reduces lint noise and keeps the codebase lean with no behavior changes.

  • Refactors
    • Enabled noUnusedVariables in biome.json.
    • Removed unused imports and state; prefixed unused params with underscores.
    • Simplified try/catch blocks by dropping unused error variables.
    • Cleaned test code to remove unused assignments and redundant variables.

Written for commit 1cbe1982e0. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6647 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 12/9/2025 **Status:** ✅ Merged **Merged:** 12/9/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `chore/remove-unused-vars` --- ### 📝 Commits (1) - [`1cbe198`](https://github.com/better-auth/better-auth/commit/1cbe1982e01c52cb871cd386d42f59953345b313) chore: remove unused variables ### 📊 Changes **116 files changed** (+332 additions, -567 deletions) <details> <summary>View changed files</summary> 📝 `biome.json` (+2 -1) 📝 `demo/expo/metro.config.js` (+0 -1) 📝 `demo/nextjs/app/(auth)/forget-password/page.tsx` (+1 -1) 📝 `demo/nextjs/app/(auth)/two-factor/otp/page.tsx` (+1 -1) 📝 `demo/nextjs/app/admin/page.tsx` (+0 -7) 📝 `demo/nextjs/app/apps/register/page.tsx` (+1 -12) 📝 `demo/nextjs/app/dashboard/organization-card.tsx` (+0 -3) 📝 `demo/nextjs/app/dashboard/user-card.tsx` (+5 -5) 📝 `demo/nextjs/app/oauth/authorize/page.tsx` (+1 -1) 📝 `demo/nextjs/tailwind.config.ts` (+0 -1) 📝 `demo/stateless/src/app/dashboard/page.tsx` (+1 -1) 📝 `docs/app/api/analytics/conversation/route.ts` (+1 -1) 📝 `docs/app/api/analytics/event/route.ts` (+1 -1) 📝 `docs/app/api/analytics/feedback/route.ts` (+1 -1) 📝 `docs/app/api/chat/route.ts` (+1 -1) 📝 `docs/app/blog/_components/changelog-layout.tsx` (+0 -12) 📝 `docs/app/changelogs/[[...slug]]/page.tsx` (+0 -1) 📝 `docs/app/changelogs/_components/changelog-layout.tsx` (+0 -12) 📝 `docs/app/enterprise/_components/enterprise-form.tsx` (+1 -1) 📝 `docs/components/builder/sign-up.tsx` (+2 -13) _...and 80 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Removed unused imports, variables, and parameters across demos, docs, packages, and tests, and enabled Biome’s noUnusedVariables rule. This reduces lint noise and keeps the codebase lean with no behavior changes. - **Refactors** - Enabled noUnusedVariables in biome.json. - Removed unused imports and state; prefixed unused params with underscores. - Simplified try/catch blocks by dropping unused error variables. - Cleaned test code to remove unused assignments and redundant variables. <sup>Written for commit 1cbe1982e01c52cb871cd386d42f59953345b313. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 23:13:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#32403