Skip to content

Commit

Permalink
chore: exclude auto imports (#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle authored Sep 11, 2024
1 parent 420e7a9 commit 8699ffc
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 79 deletions.
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,12 @@
"italic": false
}
],
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.autoImportSpecifierExcludeRegexes": [
"^@radix-ui/.*$",
"^next/router$",
"^next/dist.*$",
"^next/font.*$",
"^@phosphor-icons/react/dist/.*$"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { Checkbox } from '@/src/components/shadcn-ui/checkbox';
import { AvatarPlus } from '@/src/components/avatar-plus';
import { usePathname, useRouter } from 'next/navigation';
import { useIsMobile } from '@/src/hooks/use-is-mobile';
import { Trash } from '@phosphor-icons/react/dist/ssr';
import { useTimeAgo } from '@/src/hooks/use-time-ago';
import { type TypeId } from '@u22n/utils/typeid';
import { Trash } from '@phosphor-icons/react';
import { convoListSelecting } from '../atoms';
import { platform } from '@/src/lib/trpc';
import { memo, useMemo } from 'react';
Expand Down Expand Up @@ -174,7 +174,7 @@ export const ConvoItem = memo(function ConvoItem({
<div className="flex flex-row items-start justify-start gap-1 text-left text-sm">
<span className="ph-no-capture line-clamp-2 overflow-clip break-words">
<span className="font-semibold">
{authorAvatarData?.name.trim() + ': ' ?? ''}
{authorAvatarData?.name.trim() ?? ' ' + ': '}
</span>
{convo.entries[0]?.bodyPlainText.trim() ?? ''}
</span>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
"prettier-plugin-tailwindcss": "^0.6.6",
"tsx": "^4.18.0",
"turbo": "^1.13.4",
"typescript": "5.5.4"
"typescript": "5.6.2"
},
"lint-staged": {
"*": "prettier --write --ignore-unknown"
},
"packageManager": "pnpm@9.5.0"
"packageManager": "pnpm@9.10.0"
}
Loading

0 comments on commit 8699ffc

Please sign in to comment.