forked from Afordin/hackafor-2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.mjs
More file actions
34 lines (32 loc) · 839 Bytes
/
prettier.config.mjs
File metadata and controls
34 lines (32 loc) · 839 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
28
29
30
31
32
33
34
/** @typedef {import("@ianvs/prettier-plugin-sort-imports").PluginConfig} SortImportsConfig*/
/** @typedef {import("prettier").Config} PrettierConfig*/
/** @type { PrettierConfig | SortImportsConfig } */
const config = {
arrowParens: 'always',
printWidth: 140,
useTabs: false,
singleQuote: true,
jsxSingleQuote: false,
semi: true,
bracketSpacing: true,
bracketSameLine: false,
trailingComma: 'none',
tabWidth: 2,
plugins: ['@ianvs/prettier-plugin-sort-imports'],
importOrder: [
'^(react/(.*)$)|^(react$)|^(react-native(.*)$)',
'<THIRD_PARTY_MODULES>',
'^@/common/(.*)$',
'^@/components/(.*)$',
'^@/data/(.*)$',
'^@/layouts/(.*)$',
'^@/pages/(.*)$',
'^@/styles/(.*)$',
'^@/store/(.*)$',
'^@/utils/(.*)$',
'^@/(.*)$',
'^[./]',
''
]
};
export default config;