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 @@ import { MathBase } from "../n-ary";
import { MathBracketProperties } from "./math-bracket-properties";
export class MathAngledBrackets extends XmlComponent {
constructor(options: { readonly children: MathComponent[] }) {
public constructor(options: { readonly children: MathComponent[] }) {
super("m:d");
this.root.push(

View File

@ -6,7 +6,7 @@ class MathBeginningCharacterAttributes extends XmlAttributeComponent<{ readonly
}
export class MathBeginningCharacter extends XmlComponent {
constructor(character: string) {
public constructor(character: string) {
super("m:begChr");
this.root.push(new MathBeginningCharacterAttributes({ character }));

View File

@ -5,7 +5,7 @@ import { MathBeginningCharacter } from "./math-beginning-character";
import { MathEndingCharacter } from "./math-ending-char";
export class MathBracketProperties extends XmlComponent {
constructor(options?: { readonly beginningCharacter: string; readonly endingCharacter: string }) {
public constructor(options?: { readonly beginningCharacter: string; readonly endingCharacter: string }) {
super("m:dPr");
if (!!options) {

View File

@ -6,7 +6,7 @@ import { MathBase } from "../n-ary";
import { MathBracketProperties } from "./math-bracket-properties";
export class MathCurlyBrackets extends XmlComponent {
constructor(options: { readonly children: MathComponent[] }) {
public constructor(options: { readonly children: MathComponent[] }) {
super("m:d");
this.root.push(

View File

@ -6,7 +6,7 @@ class MathEndingCharacterAttributes extends XmlAttributeComponent<{ readonly cha
}
export class MathEndingCharacter extends XmlComponent {
constructor(character: string) {
public constructor(character: string) {
super("m:endChr");
this.root.push(new MathEndingCharacterAttributes({ character }));

View File

@ -6,7 +6,7 @@ import { MathBase } from "../n-ary";
import { MathBracketProperties } from "./math-bracket-properties";
export class MathRoundBrackets extends XmlComponent {
constructor(options: { readonly children: MathComponent[] }) {
public constructor(options: { readonly children: MathComponent[] }) {
super("m:d");
this.root.push(new MathBracketProperties());

View File

@ -6,7 +6,7 @@ import { MathBase } from "../n-ary";
import { MathBracketProperties } from "./math-bracket-properties";
export class MathSquareBrackets extends XmlComponent {
constructor(options: { readonly children: MathComponent[] }) {
public constructor(options: { readonly children: MathComponent[] }) {
super("m:d");
this.root.push(

View File

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

View File

@ -10,7 +10,7 @@ export interface IMathFractionOptions {
}
export class MathFraction extends XmlComponent {
constructor(options: IMathFractionOptions) {
public constructor(options: IMathFractionOptions) {
super("m:f");
this.root.push(new MathNumerator(options.numerator));

View File

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

View File

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

View File

@ -2,7 +2,7 @@
import { XmlComponent } from "@file/xml-components";
export class MathFunctionProperties extends XmlComponent {
constructor() {
public constructor() {
super("m:funcPr");
}
}

View File

@ -12,7 +12,7 @@ export interface IMathFunctionOptions {
}
export class MathFunction extends XmlComponent {
constructor(options: IMathFunctionOptions) {
public constructor(options: IMathFunctionOptions) {
super("m:func");
this.root.push(new MathFunctionProperties());

View File

@ -4,7 +4,7 @@ import { XmlComponent } from "@file/xml-components";
import { MathText } from "./math-text";
export class MathRun extends XmlComponent {
constructor(text: string) {
public constructor(text: string) {
super("m:r");
this.root.push(new MathText(text));

View File

@ -1,7 +1,7 @@
import { XmlComponent } from "@file/xml-components";
export class MathText extends XmlComponent {
constructor(text: string) {
public constructor(text: string) {
super("m:t");
this.root.push(text);

View File

@ -8,7 +8,7 @@ export interface IMathOptions {
}
export class Math extends XmlComponent {
constructor(options: IMathOptions) {
public constructor(options: IMathOptions) {
super("m:oMath");
for (const child of options.children) {

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) {

View File

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

View File

@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
import { MathComponent } from "../math-component";
export class MathDegree extends XmlComponent {
constructor(children?: MathComponent[]) {
public constructor(children?: MathComponent[]) {
super("m:deg");
if (!!children) {

View File

@ -3,7 +3,7 @@ import { XmlComponent } from "@file/xml-components";
import { MathDegreeHide } from "./math-degree-hide";
export class MathRadicalProperties extends XmlComponent {
constructor(hasDegree: boolean) {
public constructor(hasDegree: boolean) {
super("m:radPr");
if (!hasDegree) {

View File

@ -12,7 +12,7 @@ export interface IMathRadicalOptions {
}
export class MathRadical extends XmlComponent {
constructor(options: IMathRadicalOptions) {
public constructor(options: IMathRadicalOptions) {
super("m:rad");
this.root.push(new MathRadicalProperties(!!options.degree));

View File

@ -2,7 +2,7 @@
import { XmlComponent } from "@file/xml-components";
export class MathPreSubSuperScriptProperties extends XmlComponent {
constructor() {
public constructor() {
super("m:sPrePr");
}
}

View File

@ -12,7 +12,7 @@ export interface IMathPreSubSuperScriptOptions {
}
export class MathPreSubSuperScript extends XmlComponent {
constructor(options: IMathPreSubSuperScriptOptions) {
public constructor(options: IMathPreSubSuperScriptOptions) {
super("m:sPre");
this.root.push(new MathPreSubSuperScriptProperties());

View File

@ -2,7 +2,7 @@
import { XmlComponent } from "@file/xml-components";
export class MathSubScriptProperties extends XmlComponent {
constructor() {
public constructor() {
super("m:sSubPr");
}
}

View File

@ -11,7 +11,7 @@ export interface IMathSubScriptOptions {
}
export class MathSubScript extends XmlComponent {
constructor(options: IMathSubScriptOptions) {
public constructor(options: IMathSubScriptOptions) {
super("m:sSub");
this.root.push(new MathSubScriptProperties());

View File

@ -2,7 +2,7 @@
import { XmlComponent } from "@file/xml-components";
export class MathSubSuperScriptProperties extends XmlComponent {
constructor() {
public constructor() {
super("m:sSubSupPr");
}
}

View File

@ -12,7 +12,7 @@ export interface IMathSubSuperScriptOptions {
}
export class MathSubSuperScript extends XmlComponent {
constructor(options: IMathSubSuperScriptOptions) {
public constructor(options: IMathSubSuperScriptOptions) {
super("m:sSubSup");
this.root.push(new MathSubSuperScriptProperties());

View File

@ -2,7 +2,7 @@
import { XmlComponent } from "@file/xml-components";
export class MathSuperScriptProperties extends XmlComponent {
constructor() {
public constructor() {
super("m:sSupPr");
}
}

View File

@ -11,7 +11,7 @@ export interface IMathSuperScriptOptions {
}
export class MathSuperScript extends XmlComponent {
constructor(options: IMathSuperScriptOptions) {
public constructor(options: IMathSuperScriptOptions) {
super("m:sSup");
this.root.push(new MathSuperScriptProperties());