generated from rizbud/next-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.js
34 lines (33 loc) · 870 Bytes
/
.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
/** @type {import("prettier").Config} */
module.exports = {
plugins: [require.resolve("prettier-plugin-tailwindcss")],
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: false,
quoteProps: "as-needed",
jsxSingleQuote: false,
trailingComma: "all",
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: "always",
proseWrap: "preserve",
htmlWhitespaceSensitivity: "css",
endOfLine: "lf",
importOrder: [
"^(react|next|next/(.*))$",
"<THIRD_PARTY_MODULES>",
"^~/(hooks|libs|constants)/(.*)$",
"^~/(services|utils)/(.*)$",
"^~/(validations)/(.*)$",
"^~/(components|layouts)/(.*)$",
"^[./]",
"^~/(assets)/(.*)$",
"^~/types/(.*)$",
],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
importOrderCaseInsensitive: true,
importOrderTypeImportsToBottom: true,
};