-
Notifications
You must be signed in to change notification settings - Fork 50
/
.prettierrc.js
58 lines (58 loc) · 1.05 KB
/
.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
46
47
48
49
50
51
52
53
54
55
56
57
58
module.exports = {
plugins: ['@prettier/plugin-pug'],
semi: false,
singleQuote: true,
tabWidth: 2,
printWidth: 140,
pugPrintWidth: 140,
pugSingleQuote: false,
pugAttributeSeparator: 'none',
pugEmptyAttributes: 'none',
pugSortAttributesBeginning: [
'^cols$',
'^v-else$',
'^v-for$',
'^:key$',
'^v-if$',
'^v-else-if$',
'^v-on$',
'^v-bind$',
'^ref$',
'^v-model',
'^name$',
'^:?type$',
'^:value$',
'^v-text$',
'^:?label$',
'^:headers$',
'^:items$',
'^:?item-text$',
'^:?item-value$',
'^:?item-disabled$',
'^:?placeholder$',
'^:?src$',
'^:?color$',
'^:?text-color$',
'^:?icon$',
'^:?small$',
],
pugSortAttributesEnd: [
'^:?hint$',
'^:?persistent-hint$',
'^prepend-',
'^@click:prepend',
'^append-',
'^@click:append',
'^:to$',
'^exact$',
'^:(?!(width|height|loading|disabled|data-))',
'^target$',
'^:?width$',
'^:?height$',
'^:loading$',
'^:disabled$',
'^:?data-',
'^@click',
'^@',
],
}