-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.js
37 lines (37 loc) · 1.02 KB
/
prettier.config.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
35
36
37
/**
* @see https://prettier.io/docs/en/configuration.html
* @see https://github.com/tailwindlabs/prettier-plugin-tailwindcss
* @see https://github.com/ianvs/prettier-plugin-sort-imports
*
* @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 }
*/
export default {
singleQuote: true,
jsxSingleQuote: true,
bracketSameLine: true,
htmlWhitespaceSensitivity: 'ignore',
trailingComma: 'es5',
plugins: [
'@ianvs/prettier-plugin-sort-imports',
'prettier-plugin-tailwindcss',
],
tailwindFunctions: ['cn', 'tv'],
importOrderTypeScriptVersion: '5.0.0',
importOrder: [
'<BUILTIN_MODULES>',
'',
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
'^(expo(.*)$)|^(expo$)',
'',
'<THIRD_PARTY_MODULES>',
'',
'^@/(.*)$',
'',
'^[./]',
'^[../]',
],
};