tslint: Enable whitespace

This commit is contained in:
Simon Marchi 2018-07-18 11:23:30 -04:00
commit 7c76de4536
5 changed files with 6 additions and 7 deletions

View file

@ -139,7 +139,7 @@ export interface MIErrorConstructor {
readonly prototype: MIError;
}
export const MIError: MIErrorConstructor = <any>class MIError {
export const MIError: MIErrorConstructor = <any> class MIError {
readonly name: string;
readonly message: string;
readonly source: string;

View file

@ -98,7 +98,7 @@ export function expandValue(variableCreate: Function, value: string, root: strin
value = value.substr(3).trim();
if (value[0] == '}') {
value = value.substr(1).trim();
return <any>"<...>";
return <any> "<...>";
}
}
const eqPos = value.indexOf("=");

View file

@ -295,7 +295,7 @@ export class MI2 extends EventEmitter implements IBackend {
}
onOutputStderr(lines) {
lines = <string[]>lines.split('\n');
lines = <string[]> lines.split('\n');
lines.forEach(line => {
this.log("stderr", line);
});
@ -310,7 +310,7 @@ export class MI2 extends EventEmitter implements IBackend {
}
onOutput(lines) {
lines = <string[]>lines.split('\n');
lines = <string[]> lines.split('\n');
lines.forEach(line => {
if (couldBeOutput(line)) {
if (!gdbMatch.exec(line))

View file

@ -309,5 +309,5 @@ export function parseMI(output: string): MINode {
output = output.replace(newlineRegex, "");
}
return new MINode(token, <any>outOfBandRecord || [], resultRecords);
return new MINode(token, <any> outOfBandRecord || [], resultRecords);
}

View file

@ -35,7 +35,6 @@
"trailing-comma": false,
"triple-equals": false,
"typedef-whitespace": false,
"variable-name": false,
"whitespace": false
"variable-name": false
}
}