From 702f31c9352091dfb2694b6ee3dd47e7ed4bf85c Mon Sep 17 00:00:00 2001 From: zomars Date: Wed, 20 Apr 2022 12:37:03 -0600 Subject: [PATCH] Prepares prettier for local modules --- packages/config/prettier-preset.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/config/prettier-preset.js b/packages/config/prettier-preset.js index b1047eaf11..69d151a318 100644 --- a/packages/config/prettier-preset.js +++ b/packages/config/prettier-preset.js @@ -7,7 +7,14 @@ module.exports = { semi: true, printWidth: 110, arrowParens: "always", - importOrder: ["^@(calcom|ee)/(.*)$", "^@lib/(.*)$", "^@components/(.*)$", "^@(server|trpc)/(.*)$", "^[./]"], + importOrder: [ + "^@(calcom|ee)/(.*)$", + "^@lib/(.*)$", + "^@components/(.*)$", + "^@(server|trpc)/(.*)$", + "^~/(.*)$", + "^[./]", + ], importOrderSeparation: true, plugins: [require("./merged-prettier-plugin")], };