.prettierrc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. "@trivago/prettier-plugin-sort-imports",
  13. "prettier-plugin-tailwindcss"
  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. "<THIRD_PARTY_MODULES>",
  35. "^@/assets/(.*)",
  36. "^@/api/(.*)$",
  37. "^@/stores/(.*)$",
  38. "^@/lib/(.*)$",
  39. "^@/utils/(.*)$",
  40. "^@/constants/(.*)$",
  41. "^@/context/(.*)$",
  42. "^@/hooks/(.*)$",
  43. "^@/components/layouts/(.*)$",
  44. "^@/components/ui/(.*)$",
  45. "^@/components/errors/(.*)$",
  46. "^@/components/(.*)$",
  47. "^@/features/(.*)$",
  48. "^[./]"
  49. ]
  50. }