-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.mjs
47 lines (47 loc) · 1.09 KB
/
.prettierrc.mjs
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 & import("@ianvs/prettier-plugin-sort-imports").PrettierConfig & import('prettier-plugin-tailwindcss').options} */
export default {
// changeable
semi: false,
singleQuote: false,
tabWidth: 2,
trailingComma: "all",
useTabs: false,
// common
arrowParens: "avoid",
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: "auto",
endOfLine: "lf",
htmlWhitespaceSensitivity: "css",
insertPragma: false,
jsxSingleQuote: false,
proseWrap: "always",
quoteProps: "as-needed",
requirePragma: false,
singleAttributePerLine: false,
// plugins
importOrderTypeScriptVersion: "5.0.0",
importOrder: [
"", // Enforce a blank line after top of file comments
"<BUILTIN_MODULES>",
"",
"<THIRD_PARTY_MODULES>",
"",
"^[~]",
"",
"^[.]",
"",
".css$",
],
plugins: [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-packagejson",
"prettier-plugin-tailwindcss",
],
overrides: [
{
files: ["**/*.md", "**/*.json"],
options: { useTabs: false },
},
],
};