-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprettier.js
44 lines (44 loc) · 985 Bytes
/
prettier.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
36
37
38
39
40
41
42
43
44
module.exports = {
extends: [
'prettier',
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
plugins: [
'prettier',
],
rules: {
'prettier/prettier': ['error', {
trailingComma: 'all',
singleQuote: true,
}],
'arrow-body-style': ['error', 'as-needed'],
'prefer-arrow-callback': 'error',
curly: ['error', 'all'],
'lines-around-comment': ['error', {
beforeBlockComment: true,
afterBlockComment: true,
beforeLineComment: true,
afterLineComment: true,
allowBlockStart: true,
allowBlockEnd: true,
allowObjectStart: true,
allowObjectEnd: true,
allowArrayStart: true,
allowArrayEnd: true,
}],
'max-len': 'off',
'no-confusing-arrow': ['error', {
allowParens: false,
}],
'no-mixed-operators': 'error',
'no-tabs': 'error',
quotes: ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: false,
}],
},
};