-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
45 lines (44 loc) · 980 Bytes
/
.prettierrc.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
38
39
40
41
42
43
44
45
// @ts-check
/**
* @type {import("@ianvs/prettier-plugin-sort-imports").PrettierConfig}
*/
module.exports = {
arrowParens: 'always',
bracketSpacing: true,
endOfLine: 'lf',
printWidth: 100,
proseWrap: 'never',
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
quoteProps: 'as-needed',
semi: true,
jsxBracketSameLine: false,
jsxSingleQuote: false,
plugins: ['@ianvs/prettier-plugin-sort-imports'],
importOrder: [
'^@constants/(.*)$',
'^@hooks/(.*)$',
'^@layout/(.*)$',
'^@styles/(.*)$',
'^@components/(.*)$',
'^@pages/(.*)$',
'^[./]',
],
importOrderParserPlugins: ['typescript', 'jsx', 'decorators-legacy'],
importOrderTypeScriptVersion: '5.0.0',
overrides: [
{
files: '*.md',
options: {
parser: 'markdown',
printWidth: 120,
proseWrap: 'never',
tabWidth: 4,
useTabs: true,
singleQuote: false,
bracketSpacing: true,
},
},
],
};