Initial ESlint conversion

This commit is contained in:
Dolan Miu
2022-08-31 07:52:27 +01:00
parent d7a9cb2168
commit 1bdf9a4987
210 changed files with 4685 additions and 333 deletions

View File

@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
import { TextAttributes } from "./text-attributes";
export class Page extends XmlComponent {
constructor() {
public constructor() {
super("w:instrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("PAGE");
@ -12,7 +12,7 @@ export class Page extends XmlComponent {
}
export class NumberOfPages extends XmlComponent {
constructor() {
public constructor() {
super("w:instrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("NUMPAGES");
@ -20,7 +20,7 @@ export class NumberOfPages extends XmlComponent {
}
export class NumberOfPagesSection extends XmlComponent {
constructor() {
public constructor() {
super("w:instrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("SECTIONPAGES");