-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
101 lines (85 loc) · 1.84 KB
/
index.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
* Copyright 2023 Rigoberto Corporation
* SPDX-License-Identifier: MIT
*/
module.exports = {
/*
* Specify the line length that the printer will wrap on.
*
* According to the documentation, it is not the hard upper allowed line length limit. It is
* a way to say to Prettier roughly how long you’d like lines to be.
*/
printWidth: 100,
/*
* Number of spaces per indentation-level.
*/
tabWidth: 4,
/*
* Indent lines with tabs instead of spaces.
*/
useTabs: true,
/*
* Add a semicolon at the end of every statement.
*/
semi: true,
/*
* Use single quotes instead of double quotes.
*/
singleQuote: true,
/*
* Only add quotes around object properties where required.
*/
quoteProps: 'as-needed',
/*
* Put trailing commas where valid in ES5 (objects, arrays, etc.)
*/
trailingComma: 'es5',
/*
* Print spaces between brackets in object literals.
*/
bracketSpacing: true,
/*
* Put the closing > of a multi-line HTML node alone on the next line.
*/
bracketSameLine: false,
/*
* Include parentheses around a sole arrow function parameter.
*/
arrowParens: 'always',
/*
* Enable prose wrapping for Markdown files.
*/
proseWrap: 'always',
/*
* Disable insertion of whitespaces where it may cause a change in the rendered output.
*/
htmlWhitespaceSensitivity: 'strict',
/*
* Always use Linux EOL.
*/
endOfLine: 'lf',
/*
* Automatically format embedded languages.
*/
embeddedLanguageFormatting: 'auto',
/*
* Do not put one attribute per line in HTML, Vue and JSX.
*/
singleAttributePerLine: false,
/*
* Overrides
*/
overrides: [
/*
* Format YAML files only if there's a pragma explicitely asking to.
*
* This plugin generates buggy lists which are not aligned to tab width.
*/
{
files: '**/*.{yml,yaml}',
options: {
requirePragma: true,
},
},
],
};