mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-12 23:02:49 +00:00
web app, icons
This commit is contained in:
26
apps/web/prettier.config.mjs
Normal file
26
apps/web/prettier.config.mjs
Normal file
@@ -0,0 +1,26 @@
|
||||
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 || []),
|
||||
astroPrettierPlugin,
|
||||
twPrettierPlugin,
|
||||
],
|
||||
overrides: [
|
||||
{
|
||||
files: '*.astro',
|
||||
options: {
|
||||
parser: 'astro',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user