-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.prettierrc.cjs
More file actions
45 lines (45 loc) · 877 Bytes
/
.prettierrc.cjs
File metadata and controls
45 lines (45 loc) · 877 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
35
36
37
38
39
40
41
42
43
44
45
/**
* @type {import('prettier').Options}
*/
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: true,
trailingComma: 'es5',
bracketSpacing: true,
bracketSameLine: true,
plugins: [require.resolve('@ianvs/prettier-plugin-sort-imports')],
importOrder: [
'<BUILTIN_MODULES>',
'<THIRD_PARTY_MODULES>',
'',
'^@plasmohq/(.*)$',
'',
'^~(.*)$',
'',
'^[./]',
],
overrides: [
{
files: [
'*.css',
'*.scss',
'*.yml',
'packages/extension/build/**/*',
'packages/extension/scripts/**/*',
],
options: {
singleQuote: false,
},
},
{
files: 'packages/extension/src/messages/*.ts',
options: {
printWidth: 9999,
},
},
{ files: '*.json', options: { parser: 'json-stringify' } },
],
}