-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.js
95 lines (94 loc) · 3.81 KB
/
style.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import stylistic from '@stylistic/eslint-plugin-js'
// Stylistic v1.7.2
export default {
plugins: { '@stylistic/js': stylistic },
rules: {
'@stylistic/js/function-call-spacing': `error`,
'array-bracket-newline': [`error`, `consistent`],
'array-bracket-spacing': `error`,
'array-element-newline': [`error`, `consistent`],
'arrow-parens': [`error`, `as-needed`],
'arrow-spacing': `error`,
'block-spacing': `error`,
'brace-style': `error`,
'comma-dangle': [`error`, `always-multiline`],
'comma-spacing': `error`,
'comma-style': `error`,
'computed-property-spacing': `error`,
'dot-location': [`error`, `property`],
'eol-last': `error`,
'function-call-argument-newline': [`error`, `consistent`],
'function-paren-newline': `error`,
'generator-star-spacing': `error`,
'implicit-arrow-linebreak': `error`,
indent: [`error`, 2, { MemberExpression: 0 }],
'key-spacing': [`error`, { align: `value` }],
'keyword-spacing': `error`,
'lines-between-class-members': `error`,
'max-statements-per-line': `error`,
'multiline-ternary': [`error`, `always-multiline`],
'new-parens': [`error`, `never`],
'newline-per-chained-call': [`error`, { ignoreChainWithDepth: 3 }],
'no-confusing-arrow': `error`,
'no-extra-parens': [`error`, `all`, {
nestedBinaryExpressions: false,
ternaryOperandBinaryExpressions: false,
}],
'no-extra-semi': `error`,
'no-floating-decimal': `error`,
'no-mixed-operators': `error`,
'no-mixed-spaces-and-tabs': `error`,
'no-multi-spaces': [`error`, {
exceptions: {
AssignmentExpression: true,
AssignmentPattern: true,
ImportDeclaration: true,
ImportSpecifier: true,
VariableDeclaration: true,
VariableDeclarator: true,
},
ignoreEOLComments: true,
}],
'no-multiple-empty-lines': `warn`,
'no-tabs': `error`,
'no-trailing-spaces': `error`,
'no-whitespace-before-property': `error`,
'nonblock-statement-body-position': `error`,
'object-curly-newline': [`error`, {
consistent: true,
minProperties: 4,
}],
'object-curly-spacing': [`error`, `always`, { objectsInObjects: true }],
'object-property-newline': [`error`, { allowAllPropertiesOnSameLine: true }],
'one-var-declaration-per-line': [`error`, `always`],
'quote-props': [`error`, `as-needed`, {
keywords: true,
unnecessary: true,
}],
quotes: [`error`, `backtick`],
'rest-spread-spacing': `error`,
semi: [`error`, `never`],
'semi-spacing': `error`,
'semi-style': `error`,
'space-before-blocks': `error`,
'space-before-function-paren': [
`error`,
{
anonymous: `never`,
named: `never`,
},
],
'space-in-parens': `error`,
'space-infix-ops': `error`,
'space-unary-ops': `error`,
'spaced-comment': [
`error`,
`always`,
{ markers: [`*`] },
],
'switch-colon-spacing': `error`,
'template-curly-spacing': [`error`, `always`],
'template-tag-spacing': `error`,
'yield-star-spacing': `error`,
},
}