import { type Config } from "prettier";

const config: Config = {
  plugins: ["@trivago/prettier-plugin-sort-imports"],
  trailingComma: "none",
  printWidth: 120,
  importOrder: [
    "<BUILTIN_MODULES>",
    "<THIRD_PARTY_MODULES>",
    "(?:services|components|contexts|pages|libs|types)/(.*)$",
    "^[./].*\\.(?:ts|tsx)$",
    "\\.(?:scss|css)$",
    "^[./]"
  ],
  importOrderSeparation: true,
  importOrderSortSpecifiers: true
};

export default config;
