@@ -125,7 +125,7 @@ export class ApiViewerDemoLayout extends LitElement {
125
125
this . slots ,
126
126
this . customKnobs ,
127
127
this . props
128
- ] . map ( arr => arr . length === 0 ) ;
128
+ ] . map ( ( arr ) => arr . length === 0 ) ;
129
129
130
130
const id = this . vid as number ;
131
131
const slots = this . processedSlots ;
@@ -253,7 +253,7 @@ export class ApiViewerDemoLayout extends LitElement {
253
253
254
254
private _getCustomKnobs ( ) {
255
255
return getTemplates ( this . vid as number , this . tag , KNOB )
256
- . map ( template => {
256
+ . map ( ( template ) => {
257
257
const { attr, type } = template . dataset ;
258
258
let result = null ;
259
259
if ( attr ) {
@@ -265,7 +265,7 @@ export class ApiViewerDemoLayout extends LitElement {
265
265
( c ) : c is HTMLOptionElement =>
266
266
c instanceof HTMLOptionElement
267
267
)
268
- . map ( option => option . value )
268
+ . map ( ( option ) => option . value )
269
269
: [ ] ;
270
270
if ( node instanceof HTMLSelectElement && options . length > 1 ) {
271
271
result = {
@@ -353,7 +353,7 @@ export class ApiViewerDemoLayout extends LitElement {
353
353
const { value, dataset } = target ;
354
354
const { name } = dataset ;
355
355
356
- this . processedCss = this . processedCss . map ( prop => {
356
+ this . processedCss = this . processedCss . map ( ( prop ) => {
357
357
return prop . name === name
358
358
? {
359
359
...prop ,
@@ -393,7 +393,7 @@ export class ApiViewerDemoLayout extends LitElement {
393
393
const name = target . dataset . slot ;
394
394
const content = target . value ;
395
395
396
- this . processedSlots = this . processedSlots . map ( slot => {
396
+ this . processedSlots = this . processedSlots . map ( ( slot ) => {
397
397
return slot . name === name
398
398
? {
399
399
...slot ,
@@ -409,27 +409,27 @@ export class ApiViewerDemoLayout extends LitElement {
409
409
if ( hasTemplate ( this . vid as number , this . tag , HOST ) ) {
410
410
// Apply property values from template
411
411
this . props
412
- . filter ( prop => {
412
+ . filter ( ( prop ) => {
413
413
const { name, type } = prop ;
414
414
const defaultValue = getDefault ( prop ) ;
415
415
return (
416
416
component [ name ] !== defaultValue ||
417
417
( normalizeType ( type ) === 'boolean' && defaultValue )
418
418
) ;
419
419
} )
420
- . forEach ( prop => {
420
+ . forEach ( ( prop ) => {
421
421
this . _syncKnob ( component , prop ) ;
422
422
} ) ;
423
423
}
424
424
425
- this . events . forEach ( event => {
425
+ this . events . forEach ( ( event ) => {
426
426
this . _listen ( component , event . name ) ;
427
427
} ) ;
428
428
429
429
if ( this . cssProps . length ) {
430
430
const style = getComputedStyle ( component ) ;
431
431
432
- this . processedCss = this . cssProps . map ( cssProp => {
432
+ this . processedCss = this . cssProps . map ( ( cssProp ) => {
433
433
let value = cssProp . default
434
434
? unquote ( cssProp . default )
435
435
: style . getPropertyValue ( cssProp . name ) ;
@@ -468,7 +468,7 @@ export class ApiViewerDemoLayout extends LitElement {
468
468
[ name ] : { type, value, attribute }
469
469
} ;
470
470
471
- this . props = this . props . map ( prop => {
471
+ this . props = this . props . map ( ( prop ) => {
472
472
return prop . name === name
473
473
? {
474
474
...prop ,
0 commit comments