-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathprettier.config.mjs
58 lines (55 loc) · 1.23 KB
/
prettier.config.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import basePrettierConfig from '@tyisi/config-prettier'
// @ts-ignore
delete basePrettierConfig['tailwindFunctions']
const config = {
...basePrettierConfig,
printWidth: 150,
plugins: ['@prettier/plugin-php', 'prettier-plugin-sh', 'prettier-plugin-sql', '@prettier/plugin-xml'],
overrides: [
{
files: ['*.php'],
options: {
parser: 'php',
braceStyle: '1tbs',
trailingCommaPHP: false
}
},
{
files: ['*.sh'],
options: {
parser: 'sh'
}
},
{
files: ['*.sql'],
options: {
parser: 'sql'
}
},
{
files: ['*.xml'],
options: {
parser: 'xml'
}
},
{
files: ['.bowerrc'],
options: {
parser: 'json'
}
},
{
files: ['.shellcheckrc'],
options: {
parser: 'sh'
}
},
{
files: ['Dockerfile.*'],
options: {
parser: 'sh'
}
}
]
}
export default config