Migrate to tslint 5.1.0

This commit is contained in:
Aya Morisawa
2017-04-14 20:45:37 +09:00
parent 798d1610f0
commit b095efaee5
16 changed files with 107 additions and 95 deletions

View File

@ -52,7 +52,7 @@ export default class extends ev.EventEmitter {
private render(): string {
const width = 30;
const t = this.text ? this.text + ' ' : '';
const t = this.text ? `${this.text} ` : '';
const v = Math.floor((this.value / this.max) * width);
const vs = new Array(v + 1).join('*');
@ -61,7 +61,7 @@ export default class extends ev.EventEmitter {
const ps = new Array(p + 1).join(' ');
const percentage = Math.floor((this.value / this.max) * 100);
const percentages = chalk.gray(`(${percentage}%)`);
const percentages = chalk.gray(`(${percentage} %)`);
let i: string;
switch (this.indicator) {
@ -72,7 +72,7 @@ export default class extends ev.EventEmitter {
case null: i = '+'; break;
}
return `${i} ${t}[${vs}${ps}] ${this.value}/${this.max} ${percentages}`;
return `${i} ${t}[${vs}${ps}] ${this.value} / ${this.max} ${percentages}`;
}
}