@@ -33,7 +33,7 @@ function withComments(to, from) {
3333 * @returns {CommentLine[] }
3434 */
3535function createLineComments ( j , lines = [ ] ) {
36- return lines . map ( line => j . commentLine ( line ) ) ;
36+ return lines . map ( ( line ) => j . commentLine ( line ) ) ;
3737}
3838
3939/**
@@ -46,7 +46,7 @@ function createLineComments(j, lines = []) {
4646 * @returns {ExpressionStatement[] }
4747 */
4848function instancePropsToExpressions ( j , instanceProps ) {
49- return instanceProps . map ( instanceProp =>
49+ return instanceProps . map ( ( instanceProp ) =>
5050 withComments (
5151 j . expressionStatement (
5252 j . assignmentExpression (
@@ -93,7 +93,7 @@ function replaceSuperExpressions(j, methodDefinition, functionProp) {
9393 if ( ! superExprs . length ) {
9494 return methodDefinition ;
9595 }
96- superExprs . forEach ( superExpr => {
96+ superExprs . forEach ( ( superExpr ) => {
9797 if ( replaceWithUndefined ) {
9898 j ( superExpr ) . replaceWith ( j . identifier ( 'undefined' ) ) ;
9999 } else {
@@ -279,7 +279,7 @@ function createActionDecoratedProps(j, actionsProp) {
279279 const actionProps = get ( actionsProp , 'value.properties' ) ;
280280 const overriddenActions = get ( actionsProp , 'overriddenActions' ) || [ ] ;
281281 const actionDecorators = createIdentifierDecorators ( j ) ;
282- return actionProps . map ( actionProp => {
282+ return actionProps . map ( ( actionProp ) => {
283283 if ( get ( actionProp , 'value.type' ) === 'Identifier' ) {
284284 return convertIdentifierActionToMethod ( j , actionProp , actionDecorators ) ;
285285 } else {
@@ -318,7 +318,7 @@ function createCallExpressionProp(j, callExprProp) {
318318 } ;
319319 return [ createMethodProp ( j , functionExpr , createInstancePropDecorators ( j , callExprProp ) ) ] ;
320320 } else if ( lastArgType === 'ObjectExpression' ) {
321- const callExprMethods = callExprLastArg . properties . map ( callExprFunction => {
321+ const callExprMethods = callExprLastArg . properties . map ( ( callExprFunction ) => {
322322 callExprFunction . isComputed = true ;
323323 callExprFunction . kind = getPropName ( callExprFunction ) ;
324324 callExprFunction . key = callExprProp . key ;
@@ -382,7 +382,7 @@ function createClass(
382382 classDecorators . push ( j . decorator ( j . identifier ( 'classic' ) ) ) ;
383383 }
384384
385- instanceProps . forEach ( prop => {
385+ instanceProps . forEach ( ( prop ) => {
386386 if ( prop . isClassDecorator ) {
387387 classDecorators . push ( createClassDecorator ( j , prop ) ) ;
388388 } else if ( prop . type === 'FunctionExpression' ) {
@@ -428,8 +428,8 @@ function createImportDeclaration(j, specifiers, path) {
428428 */
429429function createEmberDecoratorSpecifiers ( j , pathSpecifiers = [ ] , decoratorsToImport = [ ] ) {
430430 return pathSpecifiers
431- . filter ( specifier => decoratorsToImport . includes ( specifier ) )
432- . map ( specifier => {
431+ . filter ( ( specifier ) => decoratorsToImport . includes ( specifier ) )
432+ . map ( ( specifier ) => {
433433 const importedSpecifier =
434434 specifier === LAYOUT_DECORATOR_LOCAL_NAME ? LAYOUT_DECORATOR_NAME : specifier ;
435435 return j . importSpecifier ( j . identifier ( importedSpecifier ) , j . identifier ( specifier ) ) ;
0 commit comments