From 7f587ccacf2c49156e9d0ded083b4356e68e19f1 Mon Sep 17 00:00:00 2001 From: trevor-anderson Date: Tue, 20 Feb 2024 10:09:50 -0500 Subject: [PATCH] build: update path aliases to reflect '@/*' pattern --- .prettierrc.yaml | 31 ++++++++++--------------------- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git a/.prettierrc.yaml b/.prettierrc.yaml index 3f83a404..36ae2145 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -1,4 +1,4 @@ -################################################## +################################################################################ # PRETTIER BASE CONFIGS printWidth: 100 @@ -14,11 +14,14 @@ bracketSameLine: false arrowParens: "always" htmlWhitespaceSensitivity: "css" endOfLine: "lf" -singleAttributePerLine: false -################################################## -# PRETTIER PLUGIN CONFIGS +plugins: ["@serverless-guru/prettier-plugin-import-order"] + +################################################################################ +# PRETTIER PLUGIN CONFIGS: @serverless-guru/prettier-plugin-import-order + +# This plugin will sort imports in accordance with the rules below. +# Note: this plugin will not move side-effect imports. -# PLUGIN: @serverless-guru/prettier-plugin-import-order importOrderMergeDuplicateImports: true importOrderBuiltinModulesToTop: true importOrderTypeImportsToBottom: true @@ -34,24 +37,10 @@ importOrder: [ "^@mui/x-(.*)$", "^@mui/material/(.*)$", "^@mui/icons-material/(.*)$", - # Project path aliases: - "^@ROOT/(.*)$", - "^@app/?(.*)$", - "^@cache/?(.*)$", - "^@components/?(.*)$", - "^@graphql/?(.*)$", - "^@hooks/?(.*)$", - "^@images/?(.*)$", - "^@layouts/?(.*)$", - "^@pages/?(.*)$", - "^@routers/?(.*)$", - "^@services/?(.*)$", - "^@tests/?(.*)$", - "^@types/?(.*)$", - "^@utils/?(.*)$", + # Project path alias: "^@/", # Relative imports at the bottom "^./", "^../", ] -################################################## +################################################################################