-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.mjs
31 lines (29 loc) · 931 Bytes
/
prettier.config.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
/** @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',
],
tailwindConfig: './packages/tailwind-config',
importOrder: [
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
'^(next/(.*)$)|^(next$)',
'^(expo(.*)$)|^(expo$)',
'<THIRD_PARTY_MODULES>',
'',
'^@ei/(.*)$',
'',
'^~/utils/(.*)$',
'^~/components/(.*)$',
'^~/styles/(.*)$',
'^~/(.*)$',
'^[./]',
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
importOrderTypeScriptVersion: '4.4.0',
singleQuote: true,
};
export default config;