5
5
amd: false
6
6
mocha: true
7
7
jasmine: false
8
+ es6: true
8
9
rules:
9
10
no-alert: 2
10
11
no-array-constructor: 2
12
+ no-arrow-condition: 0
11
13
no-bitwise: 0
12
14
no-caller: 2
15
+ no-case-declarations: 2
13
16
no-catch-shadow: 2
14
- comma-dangle: 2
15
17
no-class-assign: 2
16
18
no-cond-assign: [2, 'always']
17
19
no-console: 0
20
+ no-const-assign: 2
18
21
no-constant-condition: 2
22
+ no-continue: 0
19
23
no-control-regex: 2
20
24
no-debugger: 2
21
25
no-delete-var: 2
22
26
no-div-regex: 0
27
+ no-dupe-class-members: 2
23
28
no-dupe-keys: 2
24
29
no-dupe-args: 2
25
30
no-duplicate-case: 2
26
- no-else-return: 2
31
+ no-else-return: 0
27
32
no-empty: 2
28
33
no-empty-character-class: 2
29
- no-empty-label : 2
34
+ no-empty-pattern : 2
30
35
no-eq-null: 2
31
36
no-eval: 2
32
37
no-ex-assign: 2
43
48
no-inline-comments: 0
44
49
no-inner-declarations: [2, 'functions']
45
50
no-invalid-regexp: 2
51
+ no-invalid-this: 0 # this rule would cause problems with mocha test cases
46
52
no-irregular-whitespace: 2
47
53
no-iterator: 2
48
54
no-label-var: 2
@@ -52,10 +58,12 @@ rules:
52
58
no-loop-func: 2
53
59
no-mixed-requires: [0, false]
54
60
no-mixed-spaces-and-tabs: [2, false]
61
+ linebreak-style: [2, 'unix']
55
62
no-multi-spaces: 2
56
63
no-multi-str: 2
57
64
no-multiple-empty-lines: [2, {max: 2}]
58
65
no-native-reassign: 2
66
+ no-negated-condition: 0
59
67
no-negated-in-lhs: 2
60
68
no-nested-ternary: 0
61
69
no-new: 2
@@ -75,73 +83,106 @@ rules:
75
83
no-redeclare: 2
76
84
no-regex-spaces: 2
77
85
no-restricted-modules: 0
86
+ no-restricted-syntax: 0
78
87
no-return-assign: 2
79
88
no-script-url: 2
80
89
no-self-compare: 2
81
90
no-sequences: 2
82
91
no-shadow: 2
83
92
no-shadow-restricted-names: 2
84
- semi-spacing: 2
85
93
no-spaced-func: 2
86
94
no-sparse-arrays: 2
87
95
no-sync: 0
88
96
no-ternary: 0
89
97
no-trailing-spaces: 2
98
+ no-this-before-super: 2
99
+ no-throw-literal: 2
90
100
no-undef: 2
91
101
no-undef-init: 2
92
102
no-undefined: 0
103
+ no-unexpected-multiline: 2
93
104
no-underscore-dangle: 0
105
+ no-unneeded-ternary: 0
94
106
no-unreachable: 2
95
107
no-unused-expressions: 2
96
- no-unused-vars: [2, {vars: 'all', args: 'all'}]
108
+ no-unused-vars: [2, {vars: 'all', args: 'all', argsIgnorePattern: '^_' }]
97
109
no-use-before-define: 2
98
- no-void: 2
99
- no-var: 0
110
+ no-useless-call: 2
111
+ no-useless-concat: 0
112
+ no-var: 2
100
113
no-warning-comments: [0, {terms: ['todo', 'fixme', 'xxx'], location: 'start'}]
101
114
no-with: 2
115
+ no-magic-numbers: 0
116
+
117
+ array-bracket-spacing: [2, 'never']
118
+ arrow-body-style: 0
119
+ arrow-parens: [2, 'as-needed']
120
+ arrow-spacing: 2
121
+ accessor-pairs: 2
102
122
block-scoped-var: 2
123
+ block-spacing: 2
103
124
brace-style: 2
125
+ callback-return: 0
104
126
camelcase: 0
127
+ comma-dangle: 2
105
128
comma-spacing: 2
106
129
comma-style: 2
107
130
complexity: [0, 11]
131
+ computed-property-spacing: 2
108
132
consistent-return: 2
109
133
consistent-this: [2, 'self']
134
+ constructor-super: 2
110
135
curly: [2, 'all']
111
136
default-case: 0
137
+ dot-location: [2, 'property']
112
138
dot-notation: [2, {allowKeywords: true}]
113
139
eol-last: 2
114
140
eqeqeq: 2
115
141
func-names: 0
116
- func-style: [2, 'declaration']
117
- generator-star: 0
142
+ func-style: [2, 'declaration', {"allowArrowFunctions": true}]
143
+ generator-star-spacing: 2
144
+ global-require: 0
118
145
guard-for-in: 0
119
146
handle-callback-err: 2
147
+ id-length: 0
120
148
indent: [2, 2, {SwitchCase: 1}]
149
+ init-declarations: 0
150
+ jsx-quotes: 0
121
151
key-spacing: [2, {beforeColon: false, afterColon: true}]
122
152
keyword-spacing: 2
123
- max-depth: [1, 4]
153
+ lines-around-comment: 0
154
+ max-depth: [0, 4]
124
155
max-len: [2, 80]
125
- max-nested-callbacks: [1 , 2]
126
- max-params: [1 , 4]
156
+ max-nested-callbacks: [0 , 2]
157
+ max-params: [0 , 4]
127
158
max-statements: [0, 10]
128
159
new-cap: 2
129
160
new-parens: 2
130
- one-var: 0
161
+ newline-after-var: 0
162
+ object-curly-spacing: [2, 'never']
163
+ object-shorthand: 0
164
+ one-var: [2, 'never']
131
165
operator-assignment: [0, 'always']
166
+ operator-linebreak: 0
132
167
padded-blocks: 0
168
+ prefer-arrow-callback: 0
169
+ prefer-const: 2
170
+ prefer-spread: 2
171
+ prefer-reflect: 0
172
+ prefer-template: 0
133
173
quote-props: 0
134
174
quotes: [2, 'single']
135
175
radix: 2
136
- semi: 2
176
+ id-match: 0
177
+ require-jsdoc: 0
178
+ require-yield: 0
179
+ semi: [2, 'never']
180
+ semi-spacing: 2
137
181
sort-vars: 0
138
182
space-before-blocks: 2
139
183
space-before-function-paren: [2, 'never']
140
- object-curly-spacing: [2, 'never']
141
- array-bracket-spacing: [2, 'never']
142
184
space-in-parens: 2
143
185
space-infix-ops: 2
144
- space-return-throw-case: 2
145
186
space-unary-ops: [2, {words: true, nonwords: false}]
146
187
spaced-comment: 2
147
188
strict: [2, 'global']
@@ -152,5 +193,8 @@ rules:
152
193
wrap-iife: 0
153
194
wrap-regex: 0
154
195
yoda: [2, 'never']
155
- globals:
156
- Promise: true
196
+
197
+ no-unused-expressions/no-unused-expressions: 2
198
+ ecmaFeatures:
199
+ jsx: true
200
+ plugins: ['no-unused-expressions']
0 commit comments