prettier.config.js 832 B

1234567891011121314151617181920212223242526272829303132
  1. /** @type {import('prettier').Config} */
  2. module.exports = {
  3. endOfLine: "lf",
  4. semi: false,
  5. singleQuote: false,
  6. tabWidth: 2,
  7. trailingComma: "es5",
  8. importOrder: [
  9. "^(react/(.*)$)|^(react$)",
  10. "^(next/(.*)$)|^(next$)",
  11. "<THIRD_PARTY_MODULES>",
  12. "",
  13. "^types$",
  14. "^@/env(.*)$",
  15. "^@/types/(.*)$",
  16. "^@/config/(.*)$",
  17. "^@/lib/(.*)$",
  18. "^@/hooks/(.*)$",
  19. "^@/components/ui/(.*)$",
  20. "^@/components/(.*)$",
  21. "^@/styles/(.*)$",
  22. "^@/app/(.*)$",
  23. "",
  24. "^[./]",
  25. ],
  26. importOrderSeparation: false,
  27. importOrderSortSpecifiers: true,
  28. importOrderBuiltinModulesToTop: true,
  29. importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
  30. importOrderMergeDuplicateImports: true,
  31. importOrderCombineTypeAndValueImports: true
  32. }