Skip to content

Commit 4989782

Browse files
committed
remove relative imports in favor of the node imports config in package.json
1 parent 1d00e19 commit 4989782

File tree

84 files changed

+392
-330
lines changed

Some content is hidden

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

84 files changed

+392
-330
lines changed

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ module.exports = {
3232
'sibling',
3333
'index',
3434
],
35+
pathGroups: [{ pattern: '#*/**', group: 'internal' }],
3536
},
3637
],
3738
},

app/components/error-boundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
useRouteError,
55
} from '@remix-run/react'
66
import { type ErrorResponse } from '@remix-run/router'
7-
import { getErrorMessage } from '../utils/misc.tsx'
7+
import { getErrorMessage } from '#app/utils/misc.tsx'
88

99
type StatusHandler = (info: {
1010
error: ErrorResponse

app/components/search-bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Form, useSearchParams, useSubmit } from '@remix-run/react'
2-
import { useDebounce, useIsPending } from '../utils/misc.tsx'
2+
import { useDebounce, useIsPending } from '#app/utils/misc.tsx'
33
import { Icon } from './ui/icon.tsx'
44
import { Input } from './ui/input.tsx'
55
import { Label } from './ui/label.tsx'

app/components/toaster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect } from 'react'
22
import { Toaster, toast as showToast } from 'sonner'
3-
import { type Toast } from '../utils/toast.server.ts'
3+
import { type Toast } from '#app/utils/toast.server.ts'
44

55
export function EpicToaster({ toast }: { toast?: Toast | null }) {
66
return (

app/components/ui/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Slot } from '@radix-ui/react-slot'
22
import { cva, type VariantProps } from 'class-variance-authority'
33
import * as React from 'react'
44

5-
import { cn } from '../../utils/misc.tsx'
5+
import { cn } from '#app/utils/misc.tsx'
66

77
const buttonVariants = cva(
88
'inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',

app/components/ui/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as CheckboxPrimitive from '@radix-ui/react-checkbox'
22
import * as React from 'react'
33

4-
import { cn } from '../../utils/misc.tsx'
4+
import { cn } from '#app/utils/misc.tsx'
55

66
export type CheckboxProps = Omit<
77
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,

app/components/ui/dropdown-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'
22
import * as React from 'react'
33

4-
import { cn } from '../../utils/misc.tsx'
4+
import { cn } from '#app/utils/misc.tsx'
55

66
const DropdownMenu = DropdownMenuPrimitive.Root
77

app/components/ui/icon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type SVGProps } from 'react'
2+
import { cn } from '#app/utils/misc.tsx'
23
import { type IconName } from '@/icon-name'
3-
import { cn } from '../../utils/misc.tsx'
44
import href from './icons/sprite.svg'
55

66
export { href }

app/components/ui/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react'
22

3-
import { cn } from '../../utils/misc.tsx'
3+
import { cn } from '#app/utils/misc.tsx'
44

55
export interface InputProps
66
extends React.InputHTMLAttributes<HTMLInputElement> {}

app/components/ui/label.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as LabelPrimitive from '@radix-ui/react-label'
22
import { cva, type VariantProps } from 'class-variance-authority'
33
import * as React from 'react'
44

5-
import { cn } from '../../utils/misc.tsx'
5+
import { cn } from '#app/utils/misc.tsx'
66

77
const labelVariants = cva(
88
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',

0 commit comments

Comments
 (0)