Updated lint rules

This commit is contained in:
Dolan
2018-08-07 01:38:15 +01:00
parent 12c8cb93f6
commit e9aecfac1c
22 changed files with 34 additions and 30 deletions

View File

@ -1,7 +1,7 @@
import { Writable } from "stream";
export class BufferStream extends Writable {
private data: Buffer[];
private readonly data: Buffer[];
constructor() {
super();
@ -10,7 +10,7 @@ export class BufferStream extends Writable {
}
// tslint:disable-next-line:no-any
public _write(chunk: any, encoding: string, next: (err?: Error) => void): void {
public _write(chunk: any, _: string, next: (err?: Error) => void): void {
this.data.push(Buffer.from(chunk));
next();
}