-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.prettierrc.mjs
30 lines (28 loc) · 917 Bytes
/
.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
/** @typedef {import("prettier").Config} PrettierConfig */
/** @typedef {import("prettier-plugin-tailwindcss").PluginOptions} TailwindConfig */
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
/** @type { PrettierConfig | SortImportsConfig | TailwindConfig } */
const config = {
plugins: ["@ianvs/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
importOrder: [
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)",
"^(next/(.*)$)|^(next$)",
"<THIRD_PARTY_MODULES>",
"",
"^@acme/(.*)$",
"",
"^~/utils/(.*)$",
"^~/components/(.*)$",
"^~/styles/(.*)$",
"^~/(.*)$",
"^[./]",
],
importOrderParserPlugins: ["typescript", "jsx", "decorators-legacy"],
importOrderTypeScriptVersion: "5.2.2",
jsxSingleQuote: true,
tabWidth: 2,
trailingComma: "all",
semi: false,
printWidth: 120,
}
export default config