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

@ -5,7 +5,7 @@ class AliasAttributes extends XmlAttributeComponent<{ readonly alias: string }>
}
export class Alias extends XmlComponent {
constructor(alias: string) {
public constructor(alias: string) {
super("w:alias");
this.root.push(new AliasAttributes({ alias }));
}

View File

@ -8,7 +8,7 @@ import { ITableOfContentsOptions } from "./table-of-contents-properties";
export class FieldInstruction extends XmlComponent {
private readonly properties: ITableOfContentsOptions;
constructor(properties: ITableOfContentsOptions = {}) {
public constructor(properties: ITableOfContentsOptions = {}) {
super("w:instrText");
this.properties = properties;

View File

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

View File

@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
import { Alias } from "./alias";
export class StructuredDocumentTagProperties extends XmlComponent {
constructor(alias: string) {
public constructor(alias: string) {
super("w:sdtPr");
this.root.push(new Alias(alias));
}

View File

@ -2,7 +2,7 @@ export class StyleLevel {
public readonly styleName: string;
public readonly level: number;
constructor(styleName: string, level: number) {
public constructor(styleName: string, level: number) {
this.styleName = styleName;
this.level = level;
}

View File

@ -10,7 +10,7 @@ import { StructuredDocumentTagProperties } from "./sdt-properties";
import { ITableOfContentsOptions } from "./table-of-contents-properties";
export class TableOfContents extends XmlComponent {
constructor(alias: string = "Table of Contents", properties?: ITableOfContentsOptions) {
public constructor(alias: string = "Table of Contents", properties?: ITableOfContentsOptions) {
super("w:sdt");
this.root.push(new StructuredDocumentTagProperties(alias));