chore: add prettier (2/3): apply formatting, re-enable lint ci step (#6682)

* style: apply prettier formatting

* fix: re-enable lint ci check
This commit is contained in:
Jesse Mazzella
2023-05-18 14:54:46 -07:00
committed by GitHub
parent 172e0b23fd
commit caa7bc6fae
976 changed files with 115922 additions and 114693 deletions

View File

@@ -20,7 +20,7 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/
import DefaultClock from "../../utils/clock/DefaultClock";
import DefaultClock from '../../utils/clock/DefaultClock';
/**
* A {@link openmct.TimeAPI.Clock} that updates the temporal bounds of the
* application based on UTC time values provided by a ticking local clock,
@@ -30,33 +30,32 @@ import DefaultClock from "../../utils/clock/DefaultClock";
*/
export default class LocalClock extends DefaultClock {
constructor(period = 100) {
super();
constructor(period = 100) {
super();
this.key = 'local';
this.name = 'Local Clock';
this.description = "Provides UTC timestamps every second from the local system clock.";
this.key = 'local';
this.name = 'Local Clock';
this.description = 'Provides UTC timestamps every second from the local system clock.';
this.period = period;
this.timeoutHandle = undefined;
this.lastTick = Date.now();
}
start() {
this.timeoutHandle = setTimeout(this.tick.bind(this), this.period);
}
stop() {
if (this.timeoutHandle) {
clearTimeout(this.timeoutHandle);
this.timeoutHandle = undefined;
}
}
tick() {
const now = Date.now();
super.tick(now);
this.timeoutHandle = setTimeout(this.tick.bind(this), this.period);
this.period = period;
this.timeoutHandle = undefined;
this.lastTick = Date.now();
}
start() {
this.timeoutHandle = setTimeout(this.tick.bind(this), this.period);
}
stop() {
if (this.timeoutHandle) {
clearTimeout(this.timeoutHandle);
this.timeoutHandle = undefined;
}
}
tick() {
const now = Date.now();
super.tick(now);
this.timeoutHandle = setTimeout(this.tick.bind(this), this.period);
}
}