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

@ -33,7 +33,7 @@ export class TableBorders extends XmlComponent {
insideVertical: NONE_BORDER,
};
constructor(options: ITableBordersOptions) {
public constructor(options: ITableBordersOptions) {
super("w:tblBorders");
if (options.top) {

View File

@ -39,7 +39,7 @@ export enum TableCellMarginElementType {
}
export class TableCellMargin extends IgnoreIfEmptyXmlComponent {
constructor(type: TableCellMarginElementType, { marginUnitType = WidthType.DXA, top, left, bottom, right }: ITableCellMarginOptions) {
public constructor(type: TableCellMarginElementType, { marginUnitType = WidthType.DXA, top, left, bottom, right }: ITableCellMarginOptions) {
super(type);
if (top !== undefined) {

View File

@ -146,7 +146,7 @@ export class TableFloatOptionsAttributes extends XmlAttributeComponent<ITableFlo
}
export class TableFloatProperties extends XmlComponent {
constructor({
public constructor({
leftFromText,
rightFromText,
topFromText,

View File

@ -19,7 +19,7 @@ class TableLayoutAttributes extends XmlAttributeComponent<{ readonly type: Table
// <xsd:attribute name="type" type="ST_TblLayoutType"/>
// </xsd:complexType>
export class TableLayout extends XmlComponent {
constructor(type: TableLayoutType) {
public constructor(type: TableLayoutType) {
super("w:tblLayout");
this.root.push(new TableLayoutAttributes({ type }));
}

View File

@ -19,7 +19,7 @@ class TableOverlapAttributes extends XmlAttributeComponent<{ readonly val: Overl
}
export class TableOverlap extends XmlComponent {
constructor(type: OverlapType) {
public constructor(type: OverlapType) {
super("w:tblOverlap");
this.root.push(new TableOverlapAttributes({ val: type }));
}

View File

@ -45,7 +45,7 @@ export interface ITablePropertiesOptions {
}
export class TableProperties extends IgnoreIfEmptyXmlComponent {
constructor(options: ITablePropertiesOptions) {
public constructor(options: ITablePropertiesOptions) {
super("w:tblPr");
if (options.style) {