.prettierrc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "arrowParens": "always",
  3. "semi": false,
  4. "tabWidth": 2,
  5. "printWidth": 80,
  6. "singleQuote": true,
  7. "jsxSingleQuote": true,
  8. "trailingComma": "es5",
  9. "bracketSpacing": true,
  10. "endOfLine": "lf",
  11. "plugins": [
  12. "prettier-plugin-tailwindcss",
  13. "@trivago/prettier-plugin-sort-imports"
  14. ],
  15. "importOrder": [
  16. "^path$",
  17. "^vite$",
  18. "^@vitejs/(.*)$",
  19. "^react$",
  20. "^react-dom/client$",
  21. "^react/(.*)$",
  22. "^globals$",
  23. "^zod$",
  24. "^axios$",
  25. "^date-fns$",
  26. "^js-cookie$",
  27. "^react-hook-form$",
  28. "^use-intl$",
  29. "^@radix-ui/(.*)$",
  30. "^@hookform/resolvers/zod$",
  31. "^@tanstack/react-query$",
  32. "^@tanstack/react-router$",
  33. "^@tanstack/react-table$",
  34. "^@tabler/icons-react$",
  35. "<THIRD_PARTY_MODULES>",
  36. "^@/assets/(.*)",
  37. "^@/api/(.*)$",
  38. "^@/stores/(.*)$",
  39. "^@/lib/(.*)$",
  40. "^@/utils/(.*)$",
  41. "^@/constants/(.*)$",
  42. "^@/context/(.*)$",
  43. "^@/hooks/(.*)$",
  44. "^@/components/layouts/(.*)$",
  45. "^@/components/ui/(.*)$",
  46. "^@/components/errors/(.*)$",
  47. "^@/components/(.*)$",
  48. "^@/features/(.*)$",
  49. "^[./]"
  50. ]
  51. }