@@ -64,11 +64,11 @@ module.exports = {
64
64
// start with something that looks like a variable name or code.
65
65
ignorePattern : '^.{0,50}$|^ [a-z]+ ?[0-9A-Z_.(/=:[#-]' ,
66
66
ignoreInlineComments : true ,
67
- ignoreConsecutiveComments : true
67
+ ignoreConsecutiveComments : true ,
68
68
} ,
69
69
block : {
70
- ignorePattern : '.*'
71
- }
70
+ ignorePattern : '.*' ,
71
+ } ,
72
72
} ] ,
73
73
'comma-dangle' : [ 'error' , 'only-multiline' ] ,
74
74
'comma-spacing' : 'error' ,
@@ -168,27 +168,27 @@ module.exports = {
168
168
{
169
169
property : '__defineSetter__' ,
170
170
message : '__defineSetter__ is deprecated.' ,
171
- }
171
+ } ,
172
172
] ,
173
173
// If this list is modified, please copy the change to lib/.eslintrc.yaml
174
174
// and test/.eslintrc.yaml.
175
175
'no-restricted-syntax' : [
176
176
'error' ,
177
177
{
178
178
selector : "CallExpression[callee.object.name='assert'][callee.property.name='deepStrictEqual'][arguments.2.type='Literal']" ,
179
- message : 'Do not use a literal for the third argument of assert.deepStrictEqual()'
179
+ message : 'Do not use a literal for the third argument of assert.deepStrictEqual()' ,
180
180
} ,
181
181
{
182
182
selector : "CallExpression[callee.object.name='assert'][callee.property.name='doesNotThrow']" ,
183
- message : 'Please replace `assert.doesNotThrow()` and add a comment next to the code instead.'
183
+ message : 'Please replace `assert.doesNotThrow()` and add a comment next to the code instead.' ,
184
184
} ,
185
185
{
186
186
selector : "CallExpression[callee.object.name='assert'][callee.property.name='rejects'][arguments.length<2]" ,
187
187
message : '`assert.rejects()` must be invoked with at least two arguments.' ,
188
188
} ,
189
189
{
190
190
selector : "CallExpression[callee.object.name='assert'][callee.property.name='strictEqual'][arguments.2.type='Literal']" ,
191
- message : 'Do not use a literal for the third argument of assert.strictEqual()'
191
+ message : 'Do not use a literal for the third argument of assert.strictEqual()' ,
192
192
} ,
193
193
{
194
194
selector : "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])" ,
@@ -209,7 +209,7 @@ module.exports = {
209
209
{
210
210
selector : 'ThrowStatement > CallExpression[callee.name=/Error$/]' ,
211
211
message : 'Use `new` keyword when throwing an `Error`.' ,
212
- }
212
+ } ,
213
213
] ,
214
214
/* eslint-enable max-len */
215
215
'no-return-await' : 'error' ,
@@ -263,7 +263,7 @@ module.exports = {
263
263
'space-unary-ops' : 'error' ,
264
264
'spaced-comment' : [ 'error' , 'always' , {
265
265
'block' : { 'balanced' : true } ,
266
- 'exceptions' : [ '-' ]
266
+ 'exceptions' : [ '-' ] ,
267
267
} ] ,
268
268
'strict' : [ 'error' , 'global' ] ,
269
269
'symbol-description' : 'error' ,
0 commit comments