This commit is contained in:
EthanShoeDev
2025-09-02 01:18:03 -04:00
parent b57dbd9cf5
commit 43bf24b11c
13 changed files with 931 additions and 102 deletions

13
prettier.config.js Normal file
View File

@@ -0,0 +1,13 @@
import defaultConfig from '@epic-web/config/prettier'
// Sometimes this plugin can remove imports that are in use.
// As a workaround we will only use this in the cli. (npm run fmt)
const sortImports = process.env.SORT_IMPORTS === 'true'
/** @type {import("prettier").Options} */
export default {
...defaultConfig,
plugins: [
...(sortImports ? ['prettier-plugin-organize-imports'] : []),
...(defaultConfig.plugins || []),
],
}