|
1 | 1 | module.exports = {
|
2 |
| - /** |
3 |
| - * Include parentheses around a sole arrow function parameter. |
4 |
| - * |
5 |
| - * avoid - Omit parens when possible. Example: `x => x` |
6 |
| - * always - Always include parens. Example: `(x) => x` |
7 |
| - */ |
8 |
| - arrowParens: 'avoid', |
| 2 | + /** |
| 3 | + * Include parentheses around a sole arrow function parameter. |
| 4 | + * |
| 5 | + * avoid - Omit parens when possible. Example: `x => x` |
| 6 | + * always - Always include parens. Example: `(x) => x` |
| 7 | + */ |
| 8 | + arrowParens: 'avoid', |
9 | 9 |
|
10 |
| - /** |
11 |
| - * Print spaces between brackets. |
12 |
| - * |
13 |
| - * Type: boolean |
14 |
| - */ |
15 |
| - bracketSpacing: true, |
| 10 | + /** |
| 11 | + * Print spaces between brackets. |
| 12 | + * |
| 13 | + * Type: boolean |
| 14 | + */ |
| 15 | + bracketSpacing: true, |
16 | 16 |
|
17 |
| - /** |
18 |
| - * Print (to stderr) where a cursor at the given position would move to after formatting. |
19 |
| - * This option cannot be used with --range-start and --range-end. |
20 |
| - * |
21 |
| - * Type: integer |
22 |
| - */ |
23 |
| - cursorOffset: -1, |
| 17 | + /** |
| 18 | + * Print (to stderr) where a cursor at the given position would move to after formatting. |
| 19 | + * This option cannot be used with --range-start and --range-end. |
| 20 | + * |
| 21 | + * Type: integer |
| 22 | + */ |
| 23 | + cursorOffset: -1, |
24 | 24 |
|
25 |
| - /** |
26 |
| - * Which end of line characters to apply. |
27 |
| - * |
28 |
| - * auto - Maintain existing (mixed values within one file are normalised by looking at what's used after the first line) |
29 |
| - * lf - Line Feed only (\n), common on Linux and macOS as well as inside git repos |
30 |
| - * crlf - Carriage Return + Line Feed characters (\r\n), common on Windows |
31 |
| - * cr - Carriage Return character only (\r), used very rarely |
32 |
| - */ |
33 |
| - endOfLine: 'auto', |
| 25 | + /** |
| 26 | + * Which end of line characters to apply. |
| 27 | + * |
| 28 | + * auto - Maintain existing (mixed values within one file are normalised by looking at what's used after the first line) |
| 29 | + * lf - Line Feed only (\n), common on Linux and macOS as well as inside git repos |
| 30 | + * crlf - Carriage Return + Line Feed characters (\r\n), common on Windows |
| 31 | + * cr - Carriage Return character only (\r), used very rarely |
| 32 | + */ |
| 33 | + endOfLine: 'auto', |
34 | 34 |
|
35 |
| - /** |
36 |
| - * How to wrap prose. |
37 |
| - * |
38 |
| - * always - Wrap prose if it exceeds the print width. |
39 |
| - * never - Do not wrap prose. |
40 |
| - * preserve - Wrap prose as-is. |
41 |
| - */ |
42 |
| - proseWrap: 'preserve', |
| 35 | + /** |
| 36 | + * How to wrap prose. |
| 37 | + * |
| 38 | + * always - Wrap prose if it exceeds the print width. |
| 39 | + * never - Do not wrap prose. |
| 40 | + * preserve - Wrap prose as-is. |
| 41 | + */ |
| 42 | + proseWrap: 'preserve', |
43 | 43 |
|
44 |
| - /** |
45 |
| - * Change when properties in objects are quoted. |
46 |
| - * |
47 |
| - * as-needed - Only add quotes around object properties where required. |
48 |
| - * consistent - If at least one property in an object requires quotes, quote all properties. |
49 |
| - * preserve - Respect the input use of quotes in object properties. |
50 |
| - */ |
51 |
| - quoteProps: 'as-needed', |
| 44 | + /** |
| 45 | + * Change when properties in objects are quoted. |
| 46 | + * |
| 47 | + * as-needed - Only add quotes around object properties where required. |
| 48 | + * consistent - If at least one property in an object requires quotes, quote all properties. |
| 49 | + * preserve - Respect the input use of quotes in object properties. |
| 50 | + */ |
| 51 | + quoteProps: 'as-needed', |
52 | 52 |
|
53 |
| - /** |
54 |
| - * Print semicolons. |
55 |
| - * |
56 |
| - * Type: boolean |
57 |
| - */ |
58 |
| - semi: true, |
| 53 | + /** |
| 54 | + * Print semicolons. |
| 55 | + * |
| 56 | + * Type: boolean |
| 57 | + */ |
| 58 | + semi: true, |
59 | 59 |
|
60 |
| - /** |
61 |
| - * Use single quotes instead of double quotes. |
62 |
| - * |
63 |
| - * Type: boolean |
64 |
| - */ |
65 |
| - singleQuote: true, |
| 60 | + /** |
| 61 | + * Use single quotes instead of double quotes. |
| 62 | + * |
| 63 | + * Type: boolean |
| 64 | + */ |
| 65 | + singleQuote: true, |
66 | 66 |
|
67 |
| - /** |
68 |
| - * Number of spaces per indentation level. |
69 |
| - * |
70 |
| - * Type: integer |
71 |
| - */ |
72 |
| - tabWidth: 4, |
| 67 | + /** |
| 68 | + * Number of spaces per indentation level. |
| 69 | + * |
| 70 | + * Type: integer |
| 71 | + */ |
| 72 | + tabWidth: 4, |
73 | 73 |
|
74 |
| - /** |
75 |
| - * Print trailing commas wherever possible when multi-line. |
76 |
| - * |
77 |
| - * none - No trailing commas. |
78 |
| - * es5 - Trailing commas where valid in ES5 (objects, arrays, etc.) |
79 |
| - * all - Trailing commas wherever possible (including function arguments). |
80 |
| - */ |
81 |
| - trailingComma: 'all', |
| 74 | + /** |
| 75 | + * Print trailing commas wherever possible when multi-line. |
| 76 | + * |
| 77 | + * none - No trailing commas. |
| 78 | + * es5 - Trailing commas where valid in ES5 (objects, arrays, etc.) |
| 79 | + * all - Trailing commas wherever possible (including function arguments). |
| 80 | + */ |
| 81 | + trailingComma: 'all', |
82 | 82 |
|
83 |
| - /** |
84 |
| - * Indent with tabs instead of spaces. |
85 |
| - * |
86 |
| - * Type: boolean |
87 |
| - */ |
88 |
| - useTabs: false, |
| 83 | + /** |
| 84 | + * Indent with tabs instead of spaces. |
| 85 | + * |
| 86 | + * Type: boolean |
| 87 | + */ |
| 88 | + useTabs: true, |
89 | 89 | };
|
0 commit comments