-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.yaml
35 lines (30 loc) · 1.05 KB
/
.prettierrc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
################################################################################
# PRETTIER BASE CONFIGS
printWidth: 100
tabWidth: 2
useTabs: false
semi: true
singleQuote: false
quoteProps: "as-needed"
trailingComma: "es5"
bracketSpacing: true
arrowParens: "always"
endOfLine: "lf"
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.
importOrderMergeDuplicateImports: true
importOrderBuiltinModulesToTop: true
importOrderTypeImportsToBottom: true
importOrder: [
# External modules at the top (keyword is plugin-specific)
"<THIRD_PARTY_MODULES>",
# Then Project path aliases (tend to be project-wide utils and whatnot)
"^@/",
# Relative imports at the bottom
"^./",
"^../",
]
################################################################################