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

@ -13,7 +13,7 @@ import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { twipsMeasureValue } from "@util/values";
export class TableGrid extends XmlComponent {
constructor(widths: number[] | string[]) {
public constructor(widths: number[] | string[]) {
super("w:tblGrid");
for (const width of widths) {
this.root.push(new GridCol(width));
@ -26,7 +26,7 @@ class GridColAttributes extends XmlAttributeComponent<{ readonly w: number | str
}
export class GridCol extends XmlComponent {
constructor(width?: number | string) {
public constructor(width?: number | string) {
super("w:gridCol");
if (width !== undefined) {
this.root.push(new GridColAttributes({ w: twipsMeasureValue(width) }));