Add one-variable-per-declaration tslint rule

Multiple declarations per line makes it more difficult to read what
exactly is declared and generally makes code more verbose and less
likely to fill in types
This commit is contained in:
Daniel Imms
2017-08-05 02:42:49 -07:00
parent 7d1c5d1ac6
commit e6b431d92f
5 changed files with 57 additions and 58 deletions
+6 -1
View File
@@ -182,7 +182,12 @@ export class Parser {
* @param data The data to parse.
*/
public parse(data: string): ParserState {
let l = data.length, j, cs, ch, code, low;
const l = data.length;
let j;
let cs;
let ch;
let code;
let low;
if (this._terminal.debug) {
this._terminal.log('data: ' + data);