[PR #6044] [MERGED] chore(lint): enforce consistent import type style #14650

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6044
Author: @jonathansamines
Created: 11/17/2025
Status: Merged
Merged: 11/17/2025
Merged by: @himself65

Base: canaryHead: chore/force-import-type-style


📝 Commits (1)

  • ae9c719 chore(lint): enforce consistent import type style

📊 Changes

201 files changed (+431 additions, -459 deletions)

View changed files

📝 biome.json (+6 -0)
📝 demo/expo/src/components/icons/google.tsx (+2 -1)
📝 demo/expo/src/components/ui/button.tsx (+2 -1)
📝 demo/expo/src/components/ui/card.tsx (+3 -2)
📝 demo/expo/src/components/ui/dialog.tsx (+2 -1)
📝 demo/expo/src/components/ui/input.tsx (+2 -1)
📝 demo/expo/src/components/ui/text.tsx (+1 -1)
📝 demo/expo/src/lib/utils.ts (+3 -2)
📝 demo/nextjs/app/dashboard/organization-card.tsx (+1 -1)
📝 demo/nextjs/app/dashboard/user-card.tsx (+2 -2)
📝 demo/nextjs/app/oauth/authorize/page.tsx (+1 -1)
📝 demo/nextjs/components/account-switch.tsx (+1 -1)
📝 demo/nextjs/components/logo.tsx (+1 -1)
📝 demo/nextjs/components/tier-labels.tsx (+2 -1)
📝 demo/nextjs/components/ui/accordion.tsx (+1 -1)
📝 demo/nextjs/components/ui/alert-dialog.tsx (+1 -1)
📝 demo/nextjs/components/ui/alert.tsx (+3 -2)
📝 demo/nextjs/components/ui/avatar.tsx (+1 -1)
📝 demo/nextjs/components/ui/badge.tsx (+3 -2)
📝 demo/nextjs/components/ui/breadcrumb.tsx (+1 -1)

...and 80 more files

📄 Description

Summary by cubic

Enforces a consistent type-only import style across the repo and adds a Biome rule to keep it enforced. No runtime behavior changes.

  • Refactors
    • Added Biome rule useImportType with style: separatedType at error level.
    • Split value and type imports across the codebase (using import type for types).
    • Updated demo (Expo/Next.js), docs, and API routes to follow the new style.

Written for commit ae9c7190aa. 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/6044 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 11/17/2025 **Status:** ✅ Merged **Merged:** 11/17/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `chore/force-import-type-style` --- ### 📝 Commits (1) - [`ae9c719`](https://github.com/better-auth/better-auth/commit/ae9c7190aa371e2c06fc8564f660737a6b74deed) chore(lint): enforce consistent import type style ### 📊 Changes **201 files changed** (+431 additions, -459 deletions) <details> <summary>View changed files</summary> 📝 `biome.json` (+6 -0) 📝 `demo/expo/src/components/icons/google.tsx` (+2 -1) 📝 `demo/expo/src/components/ui/button.tsx` (+2 -1) 📝 `demo/expo/src/components/ui/card.tsx` (+3 -2) 📝 `demo/expo/src/components/ui/dialog.tsx` (+2 -1) 📝 `demo/expo/src/components/ui/input.tsx` (+2 -1) 📝 `demo/expo/src/components/ui/text.tsx` (+1 -1) 📝 `demo/expo/src/lib/utils.ts` (+3 -2) 📝 `demo/nextjs/app/dashboard/organization-card.tsx` (+1 -1) 📝 `demo/nextjs/app/dashboard/user-card.tsx` (+2 -2) 📝 `demo/nextjs/app/oauth/authorize/page.tsx` (+1 -1) 📝 `demo/nextjs/components/account-switch.tsx` (+1 -1) 📝 `demo/nextjs/components/logo.tsx` (+1 -1) 📝 `demo/nextjs/components/tier-labels.tsx` (+2 -1) 📝 `demo/nextjs/components/ui/accordion.tsx` (+1 -1) 📝 `demo/nextjs/components/ui/alert-dialog.tsx` (+1 -1) 📝 `demo/nextjs/components/ui/alert.tsx` (+3 -2) 📝 `demo/nextjs/components/ui/avatar.tsx` (+1 -1) 📝 `demo/nextjs/components/ui/badge.tsx` (+3 -2) 📝 `demo/nextjs/components/ui/breadcrumb.tsx` (+1 -1) _...and 80 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Enforces a consistent type-only import style across the repo and adds a Biome rule to keep it enforced. No runtime behavior changes. - **Refactors** - Added Biome rule useImportType with style: separatedType at error level. - Split value and type imports across the codebase (using import type for types). - Updated demo (Expo/Next.js), docs, and API routes to follow the new style. <sup>Written for commit ae9c7190aa371e2c06fc8564f660737a6b74deed. 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-13 09:33:53 -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#14650