Made project Prettier compliant

This commit is contained in:
Dolan
2018-01-23 01:33:12 +00:00
parent f2027230a0
commit e93d6799fd
101 changed files with 1198 additions and 1207 deletions

View File

@ -21,7 +21,6 @@ describe("Body", () => {
});
describe("#constructor()", () => {
it("should create the Section Properties", () => {
const newJson = Utility.jsonify(body);
assert.equal(newJson.root[0].rootKey, "w:sectPr");

View File

@ -1,7 +1,6 @@
import { XmlComponent } from "file/xml-components";
export class Body extends XmlComponent {
constructor() {
super("w:body");
}

View File

@ -1,11 +1,12 @@
import { Attributes, XmlComponent } from "file/xml-components";
export class Columns extends XmlComponent {
constructor() {
super("w:cols");
this.root.push(new Attributes({
space: "708",
}));
this.root.push(
new Attributes({
space: "708",
}),
);
}
}

View File

@ -1,11 +1,12 @@
import { Attributes, XmlComponent } from "file/xml-components";
export class DocumentGrid extends XmlComponent {
constructor() {
super("w:docGrid");
this.root.push(new Attributes({
linePitch: "360",
}));
this.root.push(
new Attributes({
linePitch: "360",
}),
);
}
}

View File

@ -1,17 +1,18 @@
import { Attributes, XmlComponent } from "file/xml-components";
export class PageMargin extends XmlComponent {
constructor() {
super("w:pgMar");
this.root.push(new Attributes({
top: "1440",
right: "1440",
bottom: "1440",
left: "1440",
header: "708",
footer: "708",
gutter: "0",
}));
this.root.push(
new Attributes({
top: "1440",
right: "1440",
bottom: "1440",
left: "1440",
header: "708",
footer: "708",
gutter: "0",
}),
);
}
}

View File

@ -1,12 +1,13 @@
import { Attributes, XmlComponent } from "file/xml-components";
export class PageSize extends XmlComponent {
constructor() {
super("w:pgSz");
this.root.push(new Attributes({
w: "11906",
h: "16838",
}));
this.root.push(
new Attributes({
w: "11906",
h: "16838",
}),
);
}
}

View File

@ -5,14 +5,15 @@ import { PageMargin } from "./page-margin";
import { PageSize } from "./page-size";
export class SectionProperties extends XmlComponent {
constructor() {
super("w:sectPr");
this.root.push(new Attributes({
rsidR: "00B64E8F",
rsidRPr: "00D842E4",
rsidSect: "000A6AD0",
}));
this.root.push(
new Attributes({
rsidR: "00B64E8F",
rsidRPr: "00D842E4",
rsidSect: "000A6AD0",
}),
);
this.root.push(new PageSize());
this.root.push(new PageMargin());
this.root.push(new Columns());