Files
fressh/apps/web/prettier.config.mjs
EthanShoeDev d86ebe146c fix fmt
2025-09-10 05:37:18 -04:00

27 lines
721 B
JavaScript

import epicConfig from '@epic-web/config/prettier';
// import * as astroPrettierPlugin from 'prettier-plugin-astro';
import * as twPrettierPlugin from 'prettier-plugin-tailwindcss';
// Sometimes this plugin can remove imports that are being edited.
// As a workaround we will only use this in the cli. (pnpm run fmt)
// const sortImports = process.env.SORT_IMPORTS === "true";
/** @type {import("prettier").Options} */
export default {
...epicConfig,
semi: true,
plugins: [
// ...(sortImports ? ["prettier-plugin-organize-imports"] : []),
...(epicConfig.plugins || []),
'prettier-plugin-astro',
twPrettierPlugin,
],
overrides: [
{
files: '*.astro',
options: {
parser: 'astro',
},
},
],
};