1
- # --------------------------------------------------------------------------------------
1
+ #
2
2
# Try prettier's new ternary formatting before it becomes the
3
3
# default behavior.
4
4
#
12
12
# @ref : https://prettier.io/docs/en/options.html
13
13
# https://prettier.io/docs/en/options.html#experimental-ternaries
14
14
# https://github.com/prettier/prettier/pull/13183
15
- # --------------------------------------------------------------------------------------
15
+ # #
16
+
16
17
# experimentalTernaries: false
17
18
18
- # --------------------------------------------------------------------------------------
19
+ # #
19
20
# Specify the line length that the printer will wrap on.
20
21
#
21
22
# @default : 80
22
23
# @ref : https://prettier.io/docs/en/options.html#print-width
23
- # --------------------------------------------------------------------------------------
24
+ # #
25
+
24
26
printWidth: 120
25
27
26
- # --------------------------------------------------------------------------------------
28
+ # #
27
29
# Specify the number of spaces per indentation-level.
28
30
#
29
31
# @default : 2
30
32
# @ref : https://prettier.io/docs/en/options.html#tab-width
31
- # --------------------------------------------------------------------------------------
33
+ # #
34
+
32
35
tabWidth: 4
33
36
34
- # --------------------------------------------------------------------------------------
37
+ # #
35
38
# Indent lines with tabs instead of spaces.
36
39
#
37
40
# @default : false
38
41
# @ref : https://prettier.io/docs/en/options.html#tabs
39
- # --------------------------------------------------------------------------------------
42
+ # #
43
+
40
44
useTabs: false
41
45
42
- # --------------------------------------------------------------------------------------
46
+ # #
43
47
# Print semicolons at the ends of statements.
44
48
#
45
49
# true : Add a semicolon at the end of every statement.
@@ -48,18 +52,20 @@ useTabs: false
48
52
#
49
53
# @default : true
50
54
# @ref : https://prettier.io/docs/en/options.html#semicolons
51
- # --------------------------------------------------------------------------------------
55
+ # #
56
+
52
57
semi: false
53
58
54
- # --------------------------------------------------------------------------------------
59
+ # #
55
60
# Use single quotes instead of double quotes.
56
61
#
57
62
# @default : false
58
63
# @ref : https://prettier.io/docs/en/options.html#quotes
59
- # --------------------------------------------------------------------------------------
64
+ # #
65
+
60
66
singleQuote: true
61
67
62
- # --------------------------------------------------------------------------------------
68
+ # #
63
69
# Change when properties in objects are quoted.
64
70
#
65
71
# "as-needed" : Only add quotes around object properties where required.
@@ -69,18 +75,20 @@ singleQuote: true
69
75
#
70
76
# @default : "as-needed"
71
77
# @ref : https://prettier.io/docs/en/options.html#quote-props
72
- # --------------------------------------------------------------------------------------
78
+ # #
79
+
73
80
quoteProps: 'preserve'
74
81
75
- # --------------------------------------------------------------------------------------
82
+ # #
76
83
# Use single quotes instead of double quotes in JSX.
77
84
#
78
85
# @default : false
79
86
# @ref : https://prettier.io/docs/en/options.html#jsx-quotes
80
- # --------------------------------------------------------------------------------------
87
+ # #
88
+
81
89
jsxSingleQuote: true
82
90
83
- # --------------------------------------------------------------------------------------
91
+ # #
84
92
# Print trailing commas wherever possible in multi-line comma-separated
85
93
# syntactic structures.
86
94
#
@@ -104,21 +112,23 @@ jsxSingleQuote: true
104
112
#
105
113
# @default : "all"
106
114
# @ref : https://prettier.io/docs/en/options.html#trailing-commas
107
- # --------------------------------------------------------------------------------------
115
+ # #
116
+
108
117
trailingComma: none
109
118
110
- # --------------------------------------------------------------------------------------
119
+ # #
111
120
# Print spaces between brackets in object literals.
112
121
#
113
122
# true : Example: { foo: bar }.
114
123
# false : Example: {foo: bar}.
115
124
#
116
125
# @default : true
117
126
# @ref : https://prettier.io/docs/en/options.html#bracket-spacing
118
- # --------------------------------------------------------------------------------------
127
+ # #
128
+
119
129
bracketSpacing: true
120
130
121
- # --------------------------------------------------------------------------------------
131
+ # #
122
132
# Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the
123
133
# last line instead of being alone on the next line (does not apply to self closing
124
134
# elements).
@@ -144,10 +154,11 @@ bracketSpacing: true
144
154
#
145
155
# @default : false
146
156
# @ref : https://prettier.io/docs/en/options.html#bracket-line
147
- # --------------------------------------------------------------------------------------
157
+ # #
158
+
148
159
bracketSameLine: false
149
160
150
- # --------------------------------------------------------------------------------------
161
+ # #
151
162
# Include parentheses around a sole arrow function parameter.
152
163
#
153
164
# First available in v1.9.0, default value changed from avoid to always in v2.0.0
@@ -158,10 +169,11 @@ bracketSameLine: false
158
169
#
159
170
# @default : "always"
160
171
# @ref : https://prettier.io/docs/en/options.html#arrow-function-parentheses
161
- # --------------------------------------------------------------------------------------
172
+ # #
173
+
162
174
arrowParens: always
163
175
164
- # --------------------------------------------------------------------------------------
176
+ # #
165
177
# By default, Prettier will not change wrapping in markdown text since some services
166
178
# use a linebreak-sensitive renderer, e.g. GitHub comments and BitBucket. To have
167
179
# Prettier wrap prose to the print width, change this option to "always". If you want
@@ -177,10 +189,11 @@ arrowParens: always
177
189
#
178
190
# @default : "preserve"
179
191
# @ref : https://prettier.io/docs/en/options.html#prose-wrap
180
- # --------------------------------------------------------------------------------------
192
+ # #
193
+
181
194
proseWrap: 'preserve'
182
195
183
- # --------------------------------------------------------------------------------------
196
+ # #
184
197
# Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars.
185
198
# See whitespace-sensitive formatting for more info.
186
199
#
@@ -195,10 +208,11 @@ proseWrap: 'preserve'
195
208
# @default : "css"
196
209
# @ref : https://prettier.io/docs/en/options.html#html-whitespace-sensitivity
197
210
# https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting
198
- # --------------------------------------------------------------------------------------
211
+ # #
212
+
199
213
htmlWhitespaceSensitivity: 'ignore'
200
214
201
- # --------------------------------------------------------------------------------------
215
+ # #
202
216
# For historical reasons, there exist two common flavors of line endings in text
203
217
# files. That is:
204
218
# - \n (or LF for Line Feed)
@@ -227,10 +241,11 @@ htmlWhitespaceSensitivity: 'ignore'
227
241
#
228
242
# @default : "lf"
229
243
# @ref : https://prettier.io/docs/en/options.html#end-of-line
230
- # --------------------------------------------------------------------------------------
244
+ # #
245
+
231
246
endOfLine: 'auto'
232
247
233
- # --------------------------------------------------------------------------------------
248
+ # #
234
249
# Control whether Prettier formats quoted code embedded in the file.
235
250
#
236
251
# When Prettier identifies cases where it looks like you've placed some code it knows
@@ -249,16 +264,18 @@ endOfLine: 'auto'
249
264
#
250
265
# @default : "auto"
251
266
# @ref : https://prettier.io/docs/en/options.html#embedded-language-formatting
252
- # --------------------------------------------------------------------------------------
267
+ # #
268
+
253
269
embeddedLanguageFormatting: 'auto'
254
270
255
- # --------------------------------------------------------------------------------------
271
+ # #
256
272
# Enforce single attribute per line in HTML, Vue and JSX.
257
273
#
258
274
# true : Enforce single attribute per line.
259
275
# false : Do not enforce single attribute per line.
260
276
#
261
277
# @default : false
262
278
# @ref : https://prettier.io/docs/en/options.html#single-attribute-per-line
263
- # --------------------------------------------------------------------------------------
279
+ # #
280
+
264
281
singleAttributePerLine: false
0 commit comments