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"] }