for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
const scheduler = typeof setImmediate === 'function' ? setImmediate : setTimeout;
setImmediate
/** global: setImmediate */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
setTimeout
/** global: setTimeout */
export default function flushPromises() {
return new Promise((resolve) => {
scheduler(resolve);
});
}
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.