-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.mjs
34 lines (32 loc) · 910 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
31
32
33
34
/** @typedef {import("prettier").Config} PrettierConfig */
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig */
/** @type { PrettierConfig | SortImportsConfig } */
const config = {
plugins: ['@ianvs/prettier-plugin-sort-imports'],
importOrder: [
'<TYPES>',
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
'^(next/(.*)$)|^(next$)',
'^(expo(.*)$)|^(expo$)',
'<THIRD_PARTY_MODULES>',
'',
'<TYPES>^@poshenloh-live',
'^@poshenloh-live/(.*)$',
'',
'<TYPES>^[.|..|~]',
'^~/',
'^[../]',
'^[./]',
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
importOrderTypeScriptVersion: '5.4.5',
bracketSpacing: true,
bracketSameLine: true,
singleQuote: true,
jsxSingleQuote: false,
trailingComma: 'es5',
semi: true,
printWidth: 110,
arrowParens: 'always',
};
export default config;