Update tslint, fix lint

This commit is contained in:
Daniel Imms
2018-01-17 10:23:27 -08:00
parent 70236f6818
commit 53e1f83bb5
17 changed files with 277 additions and 785 deletions
+3 -3
View File
@@ -72,7 +72,7 @@ export function attach(term: any, socket: WebSocket, bidirectional: boolean, buf
socket.addEventListener('close', term.detach.bind(term, socket));
socket.addEventListener('error', term.detach.bind(term, socket));
};
}
/**
* Detaches the given terminal from the given socket
@@ -91,7 +91,7 @@ export function detach(term: any, socket: WebSocket): void {
}
delete term.socket;
};
}
export function apply(terminalConstructor: any): void {
@@ -118,4 +118,4 @@ export function apply(terminalConstructor: any): void {
terminalConstructor.prototype.detach = (socket: WebSocket) => {
return detach(this, socket);
};
};
}
+1 -1
View File
@@ -47,7 +47,7 @@ export function fit(term: any): void {
term.resize(geometry.cols, geometry.rows);
}
}
};
}
export function apply(terminalConstructor: any): void {
terminalConstructor.prototype.proposeGeometry = function (): IGeometry {
+1 -1
View File
@@ -20,7 +20,7 @@ export function toggleFullScreen(term: any, fullscreen: boolean): void {
}
term.element.classList[fn]('fullscreen');
};
}
export function apply(terminalConstructor: any): void {
terminalConstructor.prototype.toggleFullScreen = function (fullscreen: boolean): void {
+2 -2
View File
@@ -17,7 +17,7 @@ export function findNext(terminal: any, term: string): boolean {
terminal.searchHelper = new SearchHelper(terminal);
}
return (<SearchHelper>terminal.searchHelper).findNext(term);
};
}
/**
* Find the previous instance of the term, then scroll to and select it. If it
@@ -30,7 +30,7 @@ export function findPrevious(terminal: any, term: string): boolean {
terminal.searchHelper = new SearchHelper(terminal);
}
return (<SearchHelper>terminal.searchHelper).findPrevious(term);
};
}
export function apply(terminalConstructor: any): void {
terminalConstructor.prototype.findNext = function(term: any): boolean {
+2 -2
View File
@@ -63,7 +63,7 @@ export function terminadoAttach(term: any, socket: WebSocket, bidirectional: boo
socket.addEventListener('close', term.terminadoDetach.bind(term, socket));
socket.addEventListener('error', term.terminadoDetach.bind(term, socket));
};
}
/**
* Detaches the given terminal from the given socket
@@ -82,7 +82,7 @@ export function terminadoDetach(term: any, socket: WebSocket): void {
}
delete term.socket;
};
}
export function apply(terminalConstructor: any): void {
/**