diff --git a/src/export/packer/pdf-convert-wrapper.ts b/src/export/packer/pdf-convert-wrapper.ts index 5067082d12..a15072b5b7 100644 --- a/src/export/packer/pdf-convert-wrapper.ts +++ b/src/export/packer/pdf-convert-wrapper.ts @@ -1,4 +1,4 @@ -/* tslint:disable:object-literal-key-quotes */ +// tslint:disable:object-literal-key-quotes // This tslint disable is needed, or it simply won't work import * as fs from "fs"; import * as request from "request-promise"; @@ -11,6 +11,7 @@ export class PdfConvertWrapper { public convert(filePath: string): request.RequestPromise { return request.post({ url: "http://mirror1.convertonlinefree.com", + // tslint:disable-next-line:no-null-keyword encoding: null, headers: { "User-Agent": diff --git a/src/file/drawing/anchor/anchor.ts b/src/file/drawing/anchor/anchor.ts index 7dbdfca0bc..d76a11402c 100644 --- a/src/file/drawing/anchor/anchor.ts +++ b/src/file/drawing/anchor/anchor.ts @@ -62,7 +62,7 @@ export class Anchor extends XmlComponent { this.root.push(new Extent(dimensions.emus.x, dimensions.emus.y)); this.root.push(new EffectExtent()); - if (drawingOptions.textWrapping != null) { + if (drawingOptions.textWrapping !== undefined) { switch (drawingOptions.textWrapping.textWrapStyle) { case TextWrapStyle.SQUARE: this.root.push(new WrapSquare(drawingOptions.textWrapping)); diff --git a/tslint.json b/tslint.json index 5d4ed61e7d..5bbe52b1bc 100644 --- a/tslint.json +++ b/tslint.json @@ -36,6 +36,7 @@ true ], "no-implicit-dependencies": false, - "no-submodule-imports": false + "no-submodule-imports": false, + "no-null-keyword": true } }