mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 14:22:51 +00:00
15 lines
455 B
JavaScript
15 lines
455 B
JavaScript
import epicConfig from '@epic-web/config/prettier';
|
|
// 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-never';
|
|
|
|
/** @type {import("prettier").Options} */
|
|
export default {
|
|
...epicConfig,
|
|
semi: true,
|
|
plugins: [
|
|
...(sortImports ? ['prettier-plugin-organize-imports'] : []),
|
|
...(epicConfig.plugins || []),
|
|
],
|
|
};
|