Updated lint rules
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -8,9 +8,9 @@ import { Formatter } from "../formatter";
|
||||
|
||||
export class Compiler {
|
||||
protected archive: archiver.Archiver;
|
||||
private formatter: Formatter;
|
||||
private readonly formatter: Formatter;
|
||||
|
||||
constructor(private file: File) {
|
||||
constructor(private readonly file: File) {
|
||||
this.formatter = new Formatter();
|
||||
this.archive = archiver.create("zip", {});
|
||||
|
||||
|
Reference in New Issue
Block a user