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

@ -6,7 +6,7 @@ class MathAccentCharacterAttributes extends XmlAttributeComponent<{ readonly acc
}
export class MathAccentCharacter extends XmlComponent {
constructor(accent: string) {
public constructor(accent: string) {
super("m:chr");
this.root.push(new MathAccentCharacterAttributes({ accent }));

View File

@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
import { MathComponent } from "../math-component";
export class MathBase extends XmlComponent {
constructor(children: MathComponent[]) {
public constructor(children: MathComponent[]) {
super("m:e");
for (const child of children) {

View File

@ -6,7 +6,7 @@ class MathLimitLocationAttributes extends XmlAttributeComponent<{ readonly value
}
export class MathLimitLocation extends XmlComponent {
constructor() {
public constructor() {
super("m:limLoc");
this.root.push(new MathLimitLocationAttributes({ value: "undOvr" }));

View File

@ -7,7 +7,7 @@ import { MathSubScriptHide } from "./math-sub-script-hide";
import { MathSuperScriptHide } from "./math-super-script-hide";
export class MathNAryProperties extends XmlComponent {
constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean) {
public constructor(accent: string, hasSuperScript: boolean, hasSubScript: boolean) {
super("m:naryPr");
this.root.push(new MathAccentCharacter(accent));

View File

@ -6,7 +6,7 @@ class MathSubScriptHideAttributes extends XmlAttributeComponent<{ readonly hide:
}
export class MathSubScriptHide extends XmlComponent {
constructor() {
public constructor() {
super("m:subHide");
this.root.push(new MathSubScriptHideAttributes({ hide: 1 }));

View File

@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
import { MathComponent } from "../math-component";
export class MathSubScriptElement extends XmlComponent {
constructor(children: MathComponent[]) {
public constructor(children: MathComponent[]) {
super("m:sub");
for (const child of children) {

View File

@ -14,7 +14,7 @@ export interface IMathSumOptions {
}
export class MathSum extends XmlComponent {
constructor(options: IMathSumOptions) {
public constructor(options: IMathSumOptions) {
super("m:nary");
this.root.push(new MathNAryProperties("∑", !!options.superScript, !!options.subScript));

View File

@ -6,7 +6,7 @@ class MathSuperScriptHideAttributes extends XmlAttributeComponent<{ readonly hid
}
export class MathSuperScriptHide extends XmlComponent {
constructor() {
public constructor() {
super("m:supHide");
this.root.push(new MathSuperScriptHideAttributes({ hide: 1 }));

View File

@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
import { MathComponent } from "../math-component";
export class MathSuperScriptElement extends XmlComponent {
constructor(children: MathComponent[]) {
public constructor(children: MathComponent[]) {
super("m:sup");
for (const child of children) {