-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.yml
121 lines (116 loc) · 1.87 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
121
plugins:
- import
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/warnings
env:
browser: true
commonjs: true
es6: true
node: true
mocha: true
parserOptions:
ecmaVersion: 6
ecmaFeatures:
modules: true
classes: true
sourceType: module
rules:
no-const-assign: warn
no-this-before-super: warn
no-undef: warn
no-unreachable: warn
no-unused-vars: warn
constructor-super: warn
valid-typeof: warn
quotes:
- error
- single
semi:
- warn
- always
consistent-this:
- warn
- _this
space-before-function-paren:
- error
- never
block-spacing: error
brace-style:
- error
- 1tbs
- allowSingleLine: true
no-console: off
no-empty:
- warn
- allowEmptyCatch: true
no-spaced-func: 2
array-bracket-spacing:
- warn
- never
- {}
space-in-parens:
- warn
- never
quote-props:
- warn
- as-needed
key-spacing:
- error
- beforeColon: false
afterColon: true
space-unary-ops:
- error
- words: false
nonwords: false
no-mixed-spaces-and-tabs: error
no-trailing-spaces: error
comma-dangle:
- warn
- never
yoda:
- warn
- never
no-with: error
no-multiple-empty-lines: error
no-multi-str: off
one-var:
- error
- never
comma-spacing:
- error
- before: false
after: true
semi-spacing:
- error
- before: false
after: true
space-before-blocks:
- error
- always
wrap-iife: error
comma-style:
- error
- last
space-infix-ops: error
camelcase:
- error
- properties: never
eol-last: error
dot-notation: error
curly:
- warn
- multi-line
- consistent
keyword-spacing:
- error
- {}
lines-around-comment:
- error
- beforeLineComment: true
allowBlockStart: true
indent:
- error
- 2
- SwitchCase: 1