Menu

Four of our 24 shadcn components are imported by nothing, and that folder is the only code in the repo with no semicolons
📰

Four of our 24 shadcn components are imported by nothing, and that folder is the only code in the repo with no semicolons

DEV Community: typescript·Daniel Pertu·4 days ago
#6USwnj8I
#devtotypescript#devto#dev#files#lines
Reading 0:00
15s threshold

src/components/ui holds 24 files and 2,314 lines of Nakodo's front end, and I did not write a single line of their style. The shadcn CLI did. Everything else in the repository is hand formatted, which makes that folder the one place where you can see a seam, and seams are worth auditing once in a while. So here is what three hours of reading it turned up: 338 lines nothing imports, a formatting difference you can count, two dependency choices that are newer than most tutorials, and one genuinely good bug fix living inside generated code.

The seam, in numbers

src/components/ui/*.tsx 24 files 2,314 lines 0 lines ending in a semicolon src/lib/*.ts 48 files 4,201 lines 1,221 lines ending in a semicolon

Enter fullscreen mode

Exit fullscreen mode

There is no Prettier in this repository, no .prettierrc , no format script, no formatter in CI. Code is wrapped by hand at about 120 columns.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.