-
Notifications
You must be signed in to change notification settings - Fork 0
/
.prettierrc.js
35 lines (30 loc) · 1.03 KB
/
.prettierrc.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
// https://prettier.io/docs/en/options.html
module.exports = {
/** General */
singleQuote: true,
semi: true,
trailingComma: 'all',
quoteProps: 'as-needed', // prettier default
bracketSpacing: true, // prettier default
bracketSameLine: false, // prettier default
arrowParens: 'always', // prettier default
proseWrap: 'preserve', // prettier default
singleAttributePerLine: false, // prettier default
embeddedLanguageFormatting: 'auto', // prettier default
// printWidth: // configured in .editorconfig->max_line_length
// useTabs: // configured in .editorconfig->indent_size
// tabWidth: // configured in .editorconfig->indent_style
// endOfLine: // configured in .editorconfig->end_of_line
/** HTML */
htmlWhitespaceSensitivity: 'css', // prettier default
/** JSX */
jsxSingleQuote: false, // prettier default
/** Vue */
vueIndentScriptAndStyle: false, // prettier default
/** Ruby */
rubyArrayLiteral: true,
rubyHashLabel: true,
rubyModifier: true,
rubySingleQuote: true,
rubyToProc: false,
};