-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
38 lines (27 loc) · 1.13 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
// Reference: https://prettier.io/docs/en/options.html
module.exports = {
$schema: 'http://json.schemastore.org/prettierrc',
// Specify the line length that the printer will wrap on.
// TODO https://github.com/vtex/javascript/issues/1
printWidth: 80,
// Specify the number of spaces per indentation-level.
tabWidth: 2,
// Indent lines with tabs instead of spaces.
useTabs: false,
// Print semicolons at the ends of statements.
semi: false,
// Use single quotes instead of double quotes.
singleQuote: true,
// Use single quotes instead of double quotes in JSX.
jsxSingleQuote: false,
// Change when properties in objects are quoted.
quoteProps: 'as-needed',
// Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.)
trailingComma: 'es5',
// Print spaces between brackets in object literals.
bracketSpacing: true,
// Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line
bracketSameLine: false,
// Include parentheses around a sole arrow function parameter.
arrowParens: 'always',
}