-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.prettierrc.cjs
30 lines (27 loc) · 906 Bytes
/
.prettierrc.cjs
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
// We specify all options to avoid them being overridden
// We use JavaScript instead of JSON or YAML so that this file can be exported
// as the package's main file. We need to do that so it can be a shareable
// configuration.
// Prettier config file does not support ES modules yet.
module.exports = {
// Same as .editorconfig (and also default values)
printWidth: 80,
tabWidth: 2,
useTabs: false,
// Same as default values
quoteProps: 'as-needed',
bracketSpacing: true,
bracketSameLine: false,
arrowParens: 'always',
htmlWhitespaceSensitivity: 'css',
// Same as default values and same as .editorconfig
// `.gitattributes` with `* text=auto eol=lf` is also needed to prevent
// Git from using CRLF on Windows.
endOfLine: 'lf',
// Different from default values
semi: false,
singleQuote: true,
jsxSingleQuote: true,
trailingComma: 'all',
proseWrap: 'always',
}