Add no null rule

This commit is contained in:
Dolan
2018-08-06 03:49:27 +01:00
parent 257c8bde99
commit 9e11774a1b
3 changed files with 5 additions and 3 deletions

View File

@ -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 // This tslint disable is needed, or it simply won't work
import * as fs from "fs"; import * as fs from "fs";
import * as request from "request-promise"; import * as request from "request-promise";
@ -11,6 +11,7 @@ export class PdfConvertWrapper {
public convert(filePath: string): request.RequestPromise { public convert(filePath: string): request.RequestPromise {
return request.post({ return request.post({
url: "http://mirror1.convertonlinefree.com", url: "http://mirror1.convertonlinefree.com",
// tslint:disable-next-line:no-null-keyword
encoding: null, encoding: null,
headers: { headers: {
"User-Agent": "User-Agent":

View File

@ -62,7 +62,7 @@ export class Anchor extends XmlComponent {
this.root.push(new Extent(dimensions.emus.x, dimensions.emus.y)); this.root.push(new Extent(dimensions.emus.x, dimensions.emus.y));
this.root.push(new EffectExtent()); this.root.push(new EffectExtent());
if (drawingOptions.textWrapping != null) { if (drawingOptions.textWrapping !== undefined) {
switch (drawingOptions.textWrapping.textWrapStyle) { switch (drawingOptions.textWrapping.textWrapStyle) {
case TextWrapStyle.SQUARE: case TextWrapStyle.SQUARE:
this.root.push(new WrapSquare(drawingOptions.textWrapping)); this.root.push(new WrapSquare(drawingOptions.textWrapping));

View File

@ -36,6 +36,7 @@
true true
], ],
"no-implicit-dependencies": false, "no-implicit-dependencies": false,
"no-submodule-imports": false "no-submodule-imports": false,
"no-null-keyword": true
} }
} }