@@ -25,7 +25,7 @@ function isAttribute(key) {
2525 */
2626function shouldSkipAttribute ( key , config ) {
2727 if ( config . skipAttributesThatMatchRegex && config . skipAttributesThatMatchRegex . length ) {
28- return config . skipAttributesThatMatchRegex . some ( rx => {
28+ return config . skipAttributesThatMatchRegex . some ( ( rx ) => {
2929 // Get the user provided string and convert it to regex.
3030 const match = / ^ \/ ( .* ) \/ ( [ a - z ] * ) $ / . exec ( rx ) ;
3131 if ( match ) {
@@ -82,7 +82,7 @@ function transformTagName(tagName) {
8282}
8383
8484function transformNestedSubExpression ( subExpression ) {
85- let positionalArgs = subExpression . params . map ( param => {
85+ let positionalArgs = subExpression . params . map ( ( param ) => {
8686 if ( param . type === 'SubExpression' ) {
8787 return transformNestedSubExpression ( param ) ;
8888 } else if ( param . type === 'StringLiteral' ) {
@@ -94,7 +94,7 @@ function transformNestedSubExpression(subExpression) {
9494
9595 let namedArgs = [ ] ;
9696 if ( subExpression . hash . pairs . length > 0 ) {
97- namedArgs = subExpression . hash . pairs . map ( pair => {
97+ namedArgs = subExpression . hash . pairs . map ( ( pair ) => {
9898 if ( pair . value . type === 'SubExpression' ) {
9999 let nestedValue = transformNestedSubExpression ( pair . value ) ;
100100 return `${ pair . key } =${ nestedValue } ` ;
@@ -125,7 +125,7 @@ function shouldSkipFile(fileInfo, config) {
125125}
126126
127127function transformAttrs ( tagName , attrs , config ) {
128- return attrs . map ( a => {
128+ return attrs . map ( ( a ) => {
129129 let _key = a . key ;
130130 let _valueType = a . value . type ;
131131 let _value ;
@@ -144,7 +144,7 @@ function transformAttrs(tagName, attrs, config) {
144144 _value = a . value ;
145145 } else {
146146 const params = a . value . params
147- . map ( p => {
147+ . map ( ( p ) => {
148148 if ( p . type === 'SubExpression' ) {
149149 return transformNestedSubExpression ( p ) ;
150150 } else if ( p . type === 'StringLiteral' ) {
@@ -290,7 +290,7 @@ function shouldSkipDataTestParams(params, includeValuelessDataTestAttributes) {
290290 const dataAttrs = getDataAttributesFromParams ( params ) ;
291291 // This is true for nodes with data-* attributes too,
292292 // as long as there is one with data-test-* attribute.
293- return ! dataAttrs . some ( attr => attr . original . startsWith ( 'data-test-' ) ) ;
293+ return ! dataAttrs . some ( ( attr ) => attr . original . startsWith ( 'data-test-' ) ) ;
294294 }
295295 return true ;
296296}
@@ -305,11 +305,11 @@ function isDataAttrPathExpression(node) {
305305}
306306
307307function getDataAttributesFromParams ( params ) {
308- return params . filter ( it => isDataAttrPathExpression ( it ) ) ;
308+ return params . filter ( ( it ) => isDataAttrPathExpression ( it ) ) ;
309309}
310310
311311function getNonDataAttributesFromParams ( params ) {
312- return params . filter ( it => ! isDataAttrPathExpression ( it ) ) ;
312+ return params . filter ( ( it ) => ! isDataAttrPathExpression ( it ) ) ;
313313}
314314
315315function shouldIgnoreMustacheStatement ( fullName , config , invokableData ) {
@@ -319,10 +319,7 @@ function shouldIgnoreMustacheStatement(fullName, config, invokableData) {
319319 let name = fullName ;
320320 // replace `::` with `/`, and ignore the path before $
321321 if ( isWallStreet ( name ) ) {
322- name = name
323- . split ( '$' )
324- . pop ( )
325- . replace ( '::' , '/' ) ;
322+ name = name . split ( '$' ) . pop ( ) . replace ( '::' , '/' ) ;
326323 }
327324
328325 if ( isTelemetryData ) {
0 commit comments