@@ -308,9 +308,7 @@ export class PlaygroundProject extends LitElement {
308308
309309 override async update ( changedProperties : PropertyValues ) {
310310 if ( changedProperties . has ( '_source' ) ) {
311- /* eslint-disable @typescript-eslint/no-floating-promises */
312- this . _loadProjectFromSource ( ) ;
313- /* eslint-enable @typescript-eslint/no-floating-promises */
311+ void this . _loadProjectFromSource ( ) ;
314312 }
315313 if (
316314 changedProperties . has ( 'sandboxScope' ) ||
@@ -362,17 +360,16 @@ export class PlaygroundProject extends LitElement {
362360 this . _importMap = importMap ;
363361 }
364362 break ;
365- default : // Exhaustive check.
363+ default :
364+ // Exhaustive check.
366365 source as void ;
367366 break ;
368367 }
369368 this . _pristineFiles =
370369 this . _files && ( JSON . parse ( JSON . stringify ( this . _files ) ) as SampleFile [ ] ) ;
371370 this . _modified = false ;
372371 this . dispatchEvent ( new FilesChangedEvent ( true ) ) ;
373- /* eslint-disable @typescript-eslint/no-floating-promises */
374- this . save ( ) ;
375- /* eslint-enable @typescript-eslint/no-floating-promises */
372+ void this . save ( ) ;
376373 }
377374
378375 override render ( ) {
@@ -496,14 +493,12 @@ export class PlaygroundProject extends LitElement {
496493 port . removeEventListener ( 'message' , onMessage ) ;
497494 if ( e . data . version === serviceWorkerHash ) {
498495 this . _serviceWorkerAPI = wrap < ServiceWorkerAPI > ( port ) ;
499- /* eslint-disable @typescript-eslint/no-floating-promises */
500- this . _serviceWorkerAPI . setFileAPI (
496+ void this . _serviceWorkerAPI . setFileAPI (
501497 proxy ( {
502498 getFile : ( name : string ) => this . _getFile ( name ) ,
503499 } ) ,
504500 this . _sessionId
505501 ) ;
506- /* eslint-enable @typescript-eslint/no-floating-promises */
507502 } else {
508503 // Version mismatch. Request the service worker be updated
509504 // immediately. We'll get back here again after it updates via a
@@ -568,13 +563,11 @@ export class PlaygroundProject extends LitElement {
568563 if ( build . state ( ) !== 'active' ) {
569564 return ;
570565 }
571- /* eslint-disable @typescript-eslint/no-floating-promises */
572- workerApi . compileProject (
566+ void workerApi . compileProject (
573567 this . _files ?? [ ] ,
574568 { importMap : this . _importMap } ,
575569 proxy ( ( result ) => build . onOutput ( result ) )
576570 ) ;
577- /* eslint-enable @typescript-eslint/no-floating-promises */
578571 await build . stateChange ;
579572 if ( build . state ( ) !== 'done' ) {
580573 return ;
@@ -688,9 +681,7 @@ export class PlaygroundProject extends LitElement {
688681 // want to be doing any searches.
689682 file . content = newContent ;
690683 this . _modified = undefined ;
691- /* eslint-disable @typescript-eslint/no-floating-promises */
692- this . saveDebounced ( ) ;
693- /* eslint-enable @typescript-eslint/no-floating-promises */
684+ void this . saveDebounced ( ) ;
694685 }
695686
696687 addFile ( name : string ) {
@@ -712,9 +703,7 @@ export class PlaygroundProject extends LitElement {
712703 this . _modified = undefined ;
713704 this . requestUpdate ( ) ;
714705 this . dispatchEvent ( new FilesChangedEvent ( ) ) ;
715- /* eslint-disable @typescript-eslint/no-floating-promises */
716- this . save ( ) ;
717- /* eslint-enable @typescript-eslint/no-floating-promises */
706+ void this . save ( ) ;
718707 }
719708
720709 deleteFile ( filename : string ) {
@@ -728,9 +717,7 @@ export class PlaygroundProject extends LitElement {
728717 this . _files = [ ...this . _files . slice ( 0 , idx ) , ...this . _files . slice ( idx + 1 ) ] ;
729718 this . _modified = undefined ;
730719 this . dispatchEvent ( new FilesChangedEvent ( ) ) ;
731- /* eslint-disable @typescript-eslint/no-floating-promises */
732- this . save ( ) ;
733- /* eslint-enable @typescript-eslint/no-floating-promises */
720+ void this . save ( ) ;
734721 }
735722
736723 renameFile ( oldName : string , newName : string ) {
@@ -750,9 +737,7 @@ export class PlaygroundProject extends LitElement {
750737 this . _files = [ ...this . _files ] ;
751738 this . _modified = undefined ;
752739 this . dispatchEvent ( new FilesChangedEvent ( ) ) ;
753- /* eslint-disable @typescript-eslint/no-floating-promises */
754- this . save ( ) ;
755- /* eslint-enable @typescript-eslint/no-floating-promises */
740+ void this . save ( ) ;
756741 }
757742}
758743
0 commit comments