Think Throothinkthroo.hashnode.devยทOct 14, 2024How Shadcn CLI uses error constants to improve code readabilityIn this article, we analyze how a file named error.ts is used across the shadcn/ui code base. utils/errors.ts error.ts contains 12 variables: export const MISSING_DIR_OR_EMPTY_PROJECT = "1" export const EXISTING_CONFIG = "2" export const MISSING_CON...JavaScriptAdd a thoughtful commentNo comments yetBe the first to start the conversation.