-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
32 lines (26 loc) · 1022 Bytes
/
.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
module.exports = {
// Overrides from defaults to match standard js.
// see: https://prettier.io/docs/en/options.html
// see: https://standardjs.com/rules-en.html
// Specified in standard
// tabWidth: 2 // default: 2
// tabs: false // default: false
semi: false, // default: true
singleQuote: true, // default: false
trailingComma: 'all', // default: 'none'
// bracketSpacing: true, // default: true
endOfLine: 'lf', // default: 'auto'
// arrowParens: 'avoid' // default: 'avoid'
// Not specified in standard
printWidth: 130, // default: 80
// quoteProps: 'as-needed', // default: 'as-needed'
// requirePragma: false, // default: false
// insertPragma: false, // default: false
// For .md
// proseWrap: 'preserve', // default: 'preserve'
// For .html
// htmlWhitespaceSensitivity: 'css', // default: 'css'
// For JSX
// jsxSingleQuote: false // default: false,
jsxBracketSameLine: true, // defaults: false // NOTE: Kept this as in the file was overriding the default
}