-
Notifications
You must be signed in to change notification settings - Fork 28
/
.eslintrc.yml
120 lines (116 loc) · 2.28 KB
/
.eslintrc.yml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
env:
es6: true
node: true
parserOptions:
ecmaVersion: 2018
extends: 'eslint:recommended'
rules:
no-console: off
no-fallthrough: off
require-atomic-updates: off
no-lonely-if: off
arrow-body-style: off
require-yield: off
# correctness checks
strict:
- error
- global
consistent-return: error
array-callback-return: error
eqeqeq:
- error
- always
no-var: error
no-unused-vars:
- error
-
varsIgnorePattern: _
args: none
no-shadow-restricted-names: error
no-promise-executor-return: error
no-case-declarations: warn
no-eval: error
no-proto: error
no-sequences: error
no-throw-literal: error
no-unmodified-loop-condition: warn
no-useless-call: warn
no-useless-return: warn
no-void: error
no-self-compare: error
prefer-promise-reject-errors: error
no-label-var: error
no-new-object: error
no-invalid-this: error
prefer-arrow-callback: warn
prefer-numeric-literals: error
no-constructor-return: error
no-new-wrappers: error
no-return-await: warn
no-unused-expressions: warn
# code style
indent:
- error
- 4
-
SwitchCase: 0
FunctionDeclaration:
parameters: first
FunctionExpression:
parameters: first
# we're not very consistent with arrays and object literals, especially in tests
ArrayExpression: off
ObjectExpression: off
ignoreComments: true
linebreak-style:
- error
- unix
semi:
- error
- always
curly:
- error
- multi-or-nest
- consistent
dot-location:
- error
- property
arrow-parens:
- error
- always
block-spacing: error
space-before-blocks:
- error
- always
object-curly-spacing:
- error
- always
brace-style: error
computed-property-spacing: error
func-call-spacing: error
keyword-spacing:
- error
-
overrides:
catch:
before: true
after: false
space-before-function-paren:
- error
-
anonymous: never
named: never
asyncArrow: always
generator-star-spacing:
- error
-
anonymous:
before: false
after: false
named:
before: false
after: true
method:
before: true
after: false
no-whitespace-before-property: error