Skip to content

Commit cb13182

Browse files
committed
refactor: improve code quality and consistency (#197)
* refactor: convert components to named exports - Convert arrow function components to function declarations - Replace React.forwardRef with modern TypeScript patterns - Remove unnecessary displayName assignments - Ensure consistent component declaration style across codebase * refactor: convert all components to named exports for consistency - Convert default exports to named exports across features directory - Update all import statements to use named imports - Move sidebarNavItems outside Settings component for better organization - Improve component parameter formatting for readability - Ensure consistent export patterns throughout codebase * refactor: enforce and update import type for typescript types
1 parent bb0bc7d commit cb13182

125 files changed

Lines changed: 239 additions & 256 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eslint.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ export default tseslint.config(
4242
ignoreRestSiblings: true,
4343
},
4444
],
45+
// Enforce type-only imports for TypeScript types
46+
'@typescript-eslint/consistent-type-imports': [
47+
'error',
48+
{
49+
prefer: 'type-imports',
50+
fixStyle: 'inline-type-imports',
51+
disallowTypeAnnotations: false,
52+
},
53+
],
4554
},
4655
}
4756
)

src/assets/brand-icons/icon-discord.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconDiscord({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-docker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconDocker({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-facebook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconFacebook({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconFigma({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-github.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconGithub({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-gitlab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconGitlab({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-gmail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconGmail({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-medium.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconMedium({ className, ...props }: SVGProps<SVGSVGElement>) {

src/assets/brand-icons/icon-notion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SVGProps } from 'react'
1+
import { type SVGProps } from 'react'
22
import { cn } from '@/lib/utils'
33

44
export function IconNotion({ className, ...props }: SVGProps<SVGSVGElement>) {

0 commit comments

Comments
 (0)