-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.yml
92 lines (77 loc) · 2.19 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
root: true
extends:
- eslint:recommended
parserOptions:
ecmaVersion: 5
env:
node: true
jasmine: true
rules:
# indent and spacing
indent: [error, 4]
array-bracket-spacing: [error, never]
arrow-spacing:
- error
- before: true
after: true
block-spacing: [error, always]
comma-spacing:
- error
- after: true
computed-property-spacing: [error, never]
generator-star-spacing:
- error
- before: true
after: false
keyword-spacing:
- error
- before: true
after: true
no-irregular-whitespace: error
no-mixed-spaces-and-tabs: error
no-multi-spaces:
- error
- exceptions:
Property: true
VariableDeclarator: true
ImportDeclaration: true
no-regex-spaces: error
no-trailing-spaces: error
no-whitespace-before-property: error
object-curly-spacing: [error, never]
rest-spread-spacing: [error, never]
semi-spacing:
- error
- before: false
after: true
space-before-blocks: [error, always]
space-before-function-paren: [error, never]
space-in-parens: [error, never]
space-infix-ops:
- error
- int32Hint: false
space-unary-ops:
- error
- words: true
nonwords: false
spaced-comment: [error, always]
template-curly-spacing: [error, never]
yield-star-spacing:
- error
- before: false
after: true
# other rules
comma-dangle: off
complexity: error
max-len:
- error
- 80
no-console: off
no-empty: off
no-unused-vars:
- error
- args: none
no-var: off
one-var: off
quotes: [error, double]
semi: error