Add no null rule
This commit is contained in:
@ -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":
|
||||||
|
@ -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));
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user