-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprettier.config.js
46 lines (45 loc) · 948 Bytes
/
prettier.config.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
const { SPECIFIC_FILES } = require('./constants');
/**
* @type {import('prettier').Options}
* @schema https://json.schemastore.org/prettierrc
*/
module.exports = {
arrowParens: 'always',
bracketSpacing: true,
endOfLine: 'auto',
jsxSingleQuote: false,
pluginSearchDirs: false,
printWidth: 80,
proseWrap: 'always',
quoteProps: 'consistent',
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
overrides: [
{
files: '*.html',
options: { printWidth: 120 },
},
{
files: '*.vue',
options: { vueIndentScriptAndStyle: true },
},
{
files: ['*.yml', '*.yaml', '*.toml'],
options: { tabWidth: 2, useTabs: false },
},
{
files: '*.sol',
options: {
printWidth: 100,
tabWidth: 4,
useTabs: false,
singleQuote: false,
bracketSpacing: true,
},
},
...SPECIFIC_FILES,
],
};