-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (32 loc) · 892 Bytes
/
index.js
File metadata and controls
33 lines (32 loc) · 892 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
/**
* @see https://prettier.io/docs/en/configuration.html
* @type {import("prettier").Config}
*/
const config = {
plugins: ['prettier-plugin-packagejson', '@ianvs/prettier-plugin-sort-imports'],
singleQuote: true,
jsxSingleQuote: true,
printWidth: 120,
tabWidth: 2,
trailingComma: 'all',
bracketSpacing: true,
semi: true,
useTabs: false,
arrowParens: 'avoid',
endOfLine: 'auto',
importOrder: [
'<TYPES>^(node:)',
'<TYPES>',
'<TYPES>^[.]',
'<BUILTIN_MODULES>',
'^react.*$', // React 관련 import
'<THIRD_PARTY_MODULES>', // 외부 모듈 import
'^@breadlee/(.*)$', // core 모듈 import
'^@app/(.*)$', // 내부 절대경로 import
'^[.]', // 상대 경로 import
],
importOrderCaseSensitive: false,
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
};
// export default config;
export default config;