-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettier.config.cjs
executable file
·51 lines (51 loc) · 1.21 KB
/
prettier.config.cjs
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
// TODO: Wait for v3 to migrate to ESM.
module.exports = {
printWidth: 120,
tabWidth: 4,
useTabs: false,
semi: true,
singleQuote: true,
quoteProps: 'consistent',
jsxSingleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
jsxBracketSameLine: false,
arrowParens: 'avoid',
proseWrap: 'always',
htmlWhitespaceSensitivity: 'ignore',
vueIndentScriptAndStyle: true,
endOfLine: 'lf',
embeddedLanguageFormatting: 'auto',
pugAttributeSeparator: 'always',
pugEmptyAttributes: 'none',
pugClassNotation: 'literal',
pugIdNotation: 'literal',
pugClassLocation: 'before-attributes',
pugPreserveAttributeBrackets: false,
overrides: [
{
files: ['*.json'],
options: {
parser: 'json-stringify',
},
},
{
files: ['*.md'],
options: {
printWidth: 80,
},
},
{
files: ['*.{ts,tsx}'],
options: {
parser: 'babel-ts',
},
},
{
files: ['*.frag'],
options: {
parser: 'glsl-parser',
},
},
],
};