Skip to content

Commit

Permalink
build: update path aliases to reflect '@/*' pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Feb 20, 2024
1 parent aa3cdfa commit 7f587cc
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##################################################
################################################################################
# PRETTIER BASE CONFIGS

printWidth: 100
Expand All @@ -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
Expand All @@ -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
"^./",
"^../",
]
##################################################
################################################################################

0 comments on commit 7f587cc

Please sign in to comment.