/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig*/ /** @typedef {import("prettier").Config} PrettierConfig*/ /** @typedef {{ tailwindConfig: string }} TailwindConfig*/ /** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */ const config = { arrowParens: "always", printWidth: 80, singleQuote: false, jsxSingleQuote: false, semi: true, trailingComma: "all", tabWidth: 2, // pluginSearchDirs: false, plugins: [ "@ianvs/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss", ], tailwindConfig: "./apps/amethyst/tailwind.config.js", importOrder: [ "^(react/(.*)$)|^(react$)|^(react-native(.*)$)", "^(next/(.*)$)|^(next$)", "^(expo(.*)$)|^(expo$)", "", "", "^@teal/(.*)$", "", "^~/utils/(.*)$", "^~/components/(.*)$", "^~/styles/(.*)$", "^~/(.*)$", "^[./]", ], importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"], importOrderTypeScriptVersion: "5.0.4", }; module.exports = config;