-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc.yml
77 lines (75 loc) · 1.22 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
plugins:
- node
extends: xo
env:
node: true
commonjs: true
es6: true
parserOptions:
ecmaFeatures:
jsx: false
experimentalObjectRestSpread: false
ecmaVersion: 2016
sourceType: script
rules:
# possible errors
eqeqeq:
- error
- smart
no-console:
- warn
no-confusing-arrow:
- error
- allowParens: true
no-eq-null:
- "off"
no-use-before-define:
- error
- functions: false
classes: false
node/no-unsupported-features:
- error
- version: 4
no-var:
- error
strict:
- error
- safe
# styling
arrow-body-style:
- error
- as-needed
brace-style:
- error
- 1tbs
- allowSingleLine: true
indent:
- error
- 2
lines-around-directive:
- error
- always
newline-after-var:
- error
- always
object-shorthand:
- error
one-var:
- error
- initialized: never
uninitialized: always
padded-blocks:
- "off"
prefer-arrow-callback:
- error
- allowNamedFunctions: true
prefer-const:
- error
space-before-function-paren:
- error
- never
valid-jsdoc:
- error
- requireParamDescription: true
requireReturnDescription: false
requireReturn: false