@@ -243,7 +243,7 @@ function isIndexVarOnlyUsedToGetArrayElements(context, node) {
243243 const arrayText = getArrayTextOfForStatement ( sourceCode , node )
244244 const indexVar = context . getDeclaredVariables ( node . init ) [ 0 ]
245245
246- return indexVar . references . every ( reference => {
246+ return indexVar . references . every ( ( reference ) => {
247247 const id = reference . identifier
248248
249249 return (
@@ -273,7 +273,8 @@ function isLengthVarOnlyUsedToTest(context, node) {
273273 const lengthVar = context . getDeclaredVariables ( node . init . declarations [ 1 ] ) [ 0 ]
274274
275275 return lengthVar . references . every (
276- reference => reference . init || contains ( node . test , reference . identifier )
276+ ( reference ) =>
277+ reference . init || contains ( node . test , reference . identifier )
277278 )
278279}
279280
@@ -497,8 +498,7 @@ module.exports = {
497498 description : "requires for-of statements instead of Array#forEach" ,
498499 category : "Best Practices" ,
499500 recommended : false ,
500- url :
501- "https://github.com/mysticatea/eslint-plugin/blob/v13.0.0/docs/rules/prefer-for-of.md" ,
501+ url : "https://github.com/mysticatea/eslint-plugin/blob/v13.0.0/docs/rules/prefer-for-of.md" ,
502502 } ,
503503 fixable : "code" ,
504504 schema : [ ] ,
@@ -580,7 +580,7 @@ module.exports = {
580580 if (
581581 thisFuncInfo != null &&
582582 thisFuncInfo . isTarget &&
583- ! thisFuncInfo . returnNodes . some ( returnNode =>
583+ ! thisFuncInfo . returnNodes . some ( ( returnNode ) =>
584584 contains ( returnNode , node )
585585 )
586586 ) {
0 commit comments