From 054903a0d3e0b77cc0dbc80ab80fd35e9ae6b125 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Sat, 20 Jul 2024 22:28:15 -0700 Subject: [PATCH] feat: update prettier --- .prettierrc | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.prettierrc b/.prettierrc index d96aca6..225d269 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,27 @@ { "tabWidth": 4, "useTabs": false, - "plugins": ["prettier-plugin-tailwindcss"] + "printWidth": 80, + "plugins": [ + "@ianvs/prettier-plugin-sort-imports", + "prettier-plugin-tailwindcss" + ], + "importOrder": [ + "^(react/(.*)$)|^(react$)", + "^(next/(.*)$)|^(next$)", + "", + "", + "^types$", + "^~/types/(.*)$", + "^~/config/(.*)$", + "^~/lib/(.*)$", + "^~/hooks/(.*)$", + "^~/components/ui/(.*)$", + "^~/components/(.*)$", + "^~/styles/(.*)$", + "^~/app/(.*)$", + "", + "^[./]" + ], + "importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"] }