Skip to content

Commit

Permalink
add setTimeout/Interval lint rules, and escape a few usages, phetsims…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 8, 2019
1 parent 045d3b6 commit 2c8649d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/UtteranceTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand All @@ -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 );

Expand Down

0 comments on commit 2c8649d

Please sign in to comment.