-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.prettierrc.yaml
52 lines (42 loc) · 1.43 KB
/
.prettierrc.yaml
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
# Prettier configuration
# Reference: https://prettier.io/docs/en/options.html
# /**
# * https://prettier.io/docs/en/options.html#semicolons
# */
semi: true # Use semicolons at the end of statements
# /**
# * https://prettier.io/docs/en/options.html#trailing-commas
# */
trailingComma: 'all' # Trailing commas where valid in ES5 (objects, arrays, etc.)
# /**
# * https://prettier.io/docs/en/options.html#bracket-spacing
# */
bracketSpacing: true # Spaces between brackets in object literals
# /**
# * https://prettier.io/docs/en/options.html#tabs
# */
useTabs: true # Use tabs for indentation
# /**
# * https://prettier.io/docs/en/options.html#tab-width
# */
tabWidth: 2 # Number of spaces per indentation-level
# /**
# * https://prettier.io/docs/en/options.html#arrow-function-parentheses
# */
arrowParens: 'always' # Always include parens in arrow function arguments
# /**
# * https://prettier.io/docs/en/options.html#quotes
# */
singleQuote: true # Use single quotes instead of double quotes
# /**
# * https://prettier.io/docs/en/options.html#quote-props
# */
quoteProps: 'as-needed' # Only quote object properties when required
# /**
# * https://prettier.io/docs/en/options.html#end-of-line
# */
endOfLine: 'lf' # Line Feed only (\n), common on Linux and macOS as well as inside git repos
# /**
# * https://prettier.io/docs/en/options.html#print-width
# */
printWidth: 100 # Specify the line length that the printer will wrap on