This commit is contained in:
EthanShoeDev
2025-09-15 23:03:59 -04:00
parent 1bde6fa8a2
commit db5eb2ff8d
15 changed files with 415 additions and 315 deletions

View File

@@ -1,14 +1,14 @@
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";
const sortImports = process.env.SORT_IMPORTS === 'true-never';
/** @type {import("prettier").Options} */
export default {
...epicConfig,
semi: true,
plugins: [
// ...(sortImports ? ["prettier-plugin-organize-imports"] : []),
...(sortImports ? ['prettier-plugin-organize-imports'] : []),
...(epicConfig.plugins || []),
],
};