-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.prettierrc.cjs
More file actions
27 lines (27 loc) · 670 Bytes
/
.prettierrc.cjs
File metadata and controls
27 lines (27 loc) · 670 Bytes
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
/** @type {import('prettier').Config} */
module.exports = {
semi: true,
singleQuote: false,
tabWidth: 2,
printWidth: 120,
jsxSingleQuote: false,
plugins: [
require.resolve("@ianvs/prettier-plugin-sort-imports"),
require.resolve("prettier-plugin-tailwindcss"), // MUST come last
],
tailwindConfig: "./tailwind.config.js",
importOrder: [
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)",
"<THIRD_PARTY_MODULES>",
"",
"^@/components/(.*)$",
"",
"^@/(.*)$",
"",
"^~/",
"^[../]",
"^[./]",
],
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
importOrderTypeScriptVersion: "4.4.0",
};