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

@ -3,7 +3,7 @@ import { SpaceType } from "@file/space-type";
import { XmlComponent } from "@file/xml-components";
export class DeletedPage extends XmlComponent {
constructor() {
public constructor() {
super("w:delInstrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("PAGE");
@ -11,7 +11,7 @@ export class DeletedPage extends XmlComponent {
}
export class DeletedNumberOfPages extends XmlComponent {
constructor() {
public constructor() {
super("w:delInstrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("NUMPAGES");
@ -19,7 +19,7 @@ export class DeletedNumberOfPages extends XmlComponent {
}
export class DeletedNumberOfPagesSection extends XmlComponent {
constructor() {
public constructor() {
super("w:delInstrText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push("SECTIONPAGES");

View File

@ -13,7 +13,7 @@ interface IDeletedRunOptions extends IRunOptions, IChangedAttributesProperties {
export class DeletedTextRun extends XmlComponent {
protected readonly deletedTextRunWrapper: DeletedTextRunWrapper;
constructor(options: IDeletedRunOptions) {
public constructor(options: IDeletedRunOptions) {
super("w:del");
this.root.push(
new ChangeAttributes({
@ -28,7 +28,7 @@ export class DeletedTextRun extends XmlComponent {
}
class DeletedTextRunWrapper extends XmlComponent {
constructor(options: IRunOptions) {
public constructor(options: IRunOptions) {
super("w:r");
this.root.push(new RunProperties(options));

View File

@ -3,7 +3,7 @@ import { SpaceType } from "@file/space-type";
import { XmlComponent } from "@file/xml-components";
export class DeletedText extends XmlComponent {
constructor(text: string) {
public constructor(text: string) {
super("w:delText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));

View File

@ -6,7 +6,7 @@ import { ChangeAttributes, IChangedAttributesProperties } from "../track-revisio
interface IInsertedRunOptions extends IChangedAttributesProperties, IRunOptions {}
export class InsertedTextRun extends XmlComponent {
constructor(options: IInsertedRunOptions) {
public constructor(options: IInsertedRunOptions) {
super("w:ins");
this.root.push(
new ChangeAttributes({