fix linting of migrations

This commit is contained in:
Matteo Pagliazzi
2019-10-08 18:36:55 +02:00
parent 621787915c
commit 0d90a1db4c
40 changed files with 219 additions and 176 deletions

View File

@@ -1,9 +1,7 @@
const logger = require('./logger');
class Timer {
constructor (options) {
options = options || {};
constructor (options = {}) {
const warningThreshold = options.minutesWarningThreshold || 10;
this.count = 0;
@@ -14,7 +12,7 @@ class Timer {
start () {
this._internalTimer = setInterval(() => {
this.count++;
this.count *= 1;
const shouldWarn = this._minutesWarningThreshold < this.count;
const logStyle = shouldWarn ? 'error' : 'warn';