From 2c8649df0864dfc720489070ca9c58f05df9e5b0 Mon Sep 17 00:00:00 2001 From: zepumph Date: Thu, 7 Nov 2019 15:33:42 -0900 Subject: [PATCH] add setTimeout/Interval lint rules, and escape a few usages, https://github.com/phetsims/phet-info/issues/59 --- js/UtteranceTests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/UtteranceTests.js b/js/UtteranceTests.js index 033a663..e72d3bc 100644 --- a/js/UtteranceTests.js +++ b/js/UtteranceTests.js @@ -19,7 +19,7 @@ define( require => { // helper es6 functions from https://stackoverflow.com/questions/33289726/combination-of-async-function-await-settimeout/33292942 function timeout( ms ) { - return new Promise( resolve => setTimeout( resolve, ms ) ); + return new Promise( resolve => setTimeout( resolve, ms ) ); // eslint-disable-line bad-sim-text } async function sleep( fn, ...args ) { @@ -39,7 +39,7 @@ define( require => { const timerInterval = 1 / 3; // step the timer, because utteranceQueue runs on timer - intervalID = setInterval( () => { + intervalID = setInterval( () => { // eslint-disable-line bad-sim-text timer.emit( timerInterval ); // step timer in seconds, every millisecond }, timerInterval * 1000 );