-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.prettierrc.js
47 lines (47 loc) · 1.12 KB
/
.prettierrc.js
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
36
37
38
39
40
41
42
43
44
45
46
47
/** @type {import('prettier').Config} */
module.exports = {
arrowParens: "avoid",
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: "auto",
endOfLine: "lf",
htmlWhitespaceSensitivity: "css",
insertPragma: false,
jsxSingleQuote: false,
printWidth: 80,
proseWrap: "always",
quoteProps: "as-needed",
requirePragma: false,
semi: false,
singleAttributePerLine: false,
singleQuote: false,
tabWidth: 2,
trailingComma: "all",
useTabs: false,
overrides: [{ files: ["**/*.json"], options: { useTabs: false } }],
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
importOrder: [
"^(react/(.*)$)|^(react$)",
"^(@remix-run/(.*)$)|^(@remix-run$)",
"<THIRD_PARTY_MODULES>",
"",
"^types$",
"^~/types",
"^~/routes",
"^~/configs",
"^~/services",
"^~/libs",
"^~/helpers",
"^~/utils",
"^~/hooks",
"^~/components",
"^~/registry",
"^~/models",
"^~/data",
"^~/schemas",
"^~/styles",
"",
"^[./]",
],
plugins: [require("@ianvs/prettier-plugin-sort-imports"), require("prettier-plugin-tailwindcss")],
}