-
Notifications
You must be signed in to change notification settings - Fork 1
/
.prettierrc.default.js
33 lines (31 loc) · 1.04 KB
/
.prettierrc.default.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
// prettier configuration
// https://prettier.io/docs/en/options.html
/*
* Displayed using eslint rules instead of prettier
// "max-len": ["error", { "code": 80, "ignoreUrls": true }], // printWidth: 80,
// "semi": ["error", "always"], // semi: true
// "indent": ["error", 2], // useTabs: false, tabWidth: 2
// "quotes": ["error", "single"], // singleQuote: true
// "comma-dangle": ["error"], // trailingComma: 'all'
// "object-curly-spacing": ["error", "always"], // bracketSpacing: true
// "arrow-parens": ["error", "as-needed"], // arrowParens: 'avoid'
// "space-in-parens": ["error", "never"],
// "space-before-function-paren": ["error", "always"],
// "keyword-spacing": ["error", { "before": true, "after": true }],
*/
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: false,
trailingComma: 'none',
bracketSpacing: true,
arrowParens: 'avoid',
rangeStart: 0,
rangeEnd: Infinity,
requirePragma: false,
insertPragma: false,
proseWrap: 'preserve',
parser: 'babylon',
}