11const getLocation = ( node ) => {
22 return {
33 end : node . params [ node . params . length - 1 ] . loc . end ,
4- start : node . params [ 0 ] . loc . start
4+ start : node . params [ 0 ] . loc . start ,
55 } ;
66} ;
77
@@ -40,7 +40,7 @@ export default {
4040
4141 return fixer . replaceTextRange ( [
4242 firstTokenOfParam . range [ 0 ] ,
43- closingParenToken . range [ 1 ]
43+ closingParenToken . range [ 1 ] ,
4444 ] , `${ shouldAddSpaceForAsync ? ' ' : '' } ${ paramToken . value } ` ) ;
4545 } ;
4646
@@ -70,7 +70,7 @@ export default {
7070 fix : fixParamsWithParenthesis ,
7171 loc : getLocation ( node ) ,
7272 messageId : 'unexpectedParensInline' ,
73- node
73+ node,
7474 } ) ;
7575 }
7676
@@ -88,7 +88,7 @@ export default {
8888 } ,
8989 loc : getLocation ( node ) ,
9090 messageId : 'expectedParensBlock' ,
91- node
91+ node,
9292 } ) ;
9393 }
9494
@@ -107,7 +107,7 @@ export default {
107107 fix : fixParamsWithParenthesis ,
108108 loc : getLocation ( node ) ,
109109 messageId : 'unexpectedParens' ,
110- node
110+ node,
111111 } ) ;
112112 }
113113
@@ -125,14 +125,14 @@ export default {
125125 } ,
126126 loc : getLocation ( node ) ,
127127 messageId : 'expectedParens' ,
128- node
128+ node,
129129 } ) ;
130130 }
131131 }
132132 } ;
133133
134134 return {
135- ArrowFunctionExpression : parens
135+ ArrowFunctionExpression : parens ,
136136 } ;
137137 } ,
138138
@@ -141,7 +141,7 @@ export default {
141141 category : 'ECMAScript 6' ,
142142 description : 'require parentheses around arrow function arguments' ,
143143 recommended : false ,
144- url : 'https://eslint.org/docs/rules/arrow-parens'
144+ url : 'https://eslint.org/docs/rules/arrow-parens' ,
145145 } ,
146146
147147 fixable : 'code' ,
@@ -151,25 +151,25 @@ export default {
151151 expectedParensBlock : 'Expected parentheses around arrow function argument having a body with curly braces.' ,
152152
153153 unexpectedParens : 'Unexpected parentheses around single function argument.' ,
154- unexpectedParensInline : 'Unexpected parentheses around single function argument having a body with no curly braces.'
154+ unexpectedParensInline : 'Unexpected parentheses around single function argument having a body with no curly braces.' ,
155155 } ,
156156
157- type : 'layout'
157+ type : 'layout' ,
158158 } ,
159159
160160 schema : [
161161 {
162- enum : [ 'always' , 'as-needed' ]
162+ enum : [ 'always' , 'as-needed' ] ,
163163 } ,
164164 {
165165 additionalProperties : false ,
166166 properties : {
167167 requireForBlockBody : {
168168 default : false ,
169- type : 'boolean'
170- }
169+ type : 'boolean' ,
170+ } ,
171171 } ,
172- type : 'object'
173- }
174- ]
172+ type : 'object' ,
173+ } ,
174+ ] ,
175175} ;
0 commit comments