Initial ESlint conversion
This commit is contained in:
@ -32,7 +32,7 @@ class AbstractNumberingAttributes extends XmlAttributeComponent<{
|
||||
export class AbstractNumbering extends XmlComponent {
|
||||
public readonly id: number;
|
||||
|
||||
constructor(id: number, levelOptions: ILevelsOptions[]) {
|
||||
public constructor(id: number, levelOptions: ILevelsOptions[]) {
|
||||
super("w:abstractNum");
|
||||
this.root.push(
|
||||
new AbstractNumberingAttributes({
|
||||
|
@ -38,7 +38,7 @@ class LevelAttributes extends XmlAttributeComponent<{
|
||||
// <xsd:attribute name="format" type="s:ST_String" use="optional"/>
|
||||
// </xsd:complexType>
|
||||
class NumberFormat extends XmlComponent {
|
||||
constructor(value: string) {
|
||||
public constructor(value: string) {
|
||||
super("w:numFmt");
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
@ -53,7 +53,7 @@ class NumberFormat extends XmlComponent {
|
||||
// <xsd:attribute name="null" type="s:ST_OnOff" use="optional"/>
|
||||
// </xsd:complexType>
|
||||
class LevelText extends XmlComponent {
|
||||
constructor(value: string) {
|
||||
public constructor(value: string) {
|
||||
super("w:lvlText");
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
@ -64,7 +64,7 @@ class LevelText extends XmlComponent {
|
||||
}
|
||||
|
||||
class LevelJc extends XmlComponent {
|
||||
constructor(value: AlignmentType) {
|
||||
public constructor(value: AlignmentType) {
|
||||
super("w:lvlJc");
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
@ -104,7 +104,7 @@ export interface ILevelsOptions {
|
||||
// </xsd:restriction>
|
||||
// </xsd:simpleType>
|
||||
class Suffix extends XmlComponent {
|
||||
constructor(value: LevelSuffix) {
|
||||
public constructor(value: LevelSuffix) {
|
||||
super("w:suff");
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
@ -137,7 +137,7 @@ export class LevelBase extends XmlComponent {
|
||||
private readonly paragraphProperties: ParagraphProperties;
|
||||
private readonly runProperties: RunProperties;
|
||||
|
||||
constructor({ level, format, text, alignment = AlignmentType.START, start = 1, style, suffix }: ILevelsOptions) {
|
||||
public constructor({ level, format, text, alignment = AlignmentType.START, start = 1, style, suffix }: ILevelsOptions) {
|
||||
super("w:lvl");
|
||||
|
||||
this.root.push(new NumberValueElement("w:start", decimalNumber(start)));
|
||||
@ -180,7 +180,7 @@ export class LevelBase extends XmlComponent {
|
||||
export class Level extends LevelBase {
|
||||
// This is the level that sits under abstractNum. We make a
|
||||
// handful of properties required
|
||||
constructor(options: ILevelsOptions) {
|
||||
public constructor(options: ILevelsOptions) {
|
||||
super(options);
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ import { Attributes, XmlComponent } from "@file/xml-components";
|
||||
// </xsd:restriction>
|
||||
// </xsd:simpleType>
|
||||
export class MultiLevelType extends XmlComponent {
|
||||
constructor(value: string) {
|
||||
public constructor(value: string) {
|
||||
super("w:multiLevelType");
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
|
@ -2,7 +2,7 @@ import { Attributes, XmlAttributeComponent, XmlComponent } from "@file/xml-compo
|
||||
import { decimalNumber } from "@util/values";
|
||||
|
||||
class AbstractNumId extends XmlComponent {
|
||||
constructor(value: number) {
|
||||
public constructor(value: number) {
|
||||
super("w:abstractNumId");
|
||||
this.root.push(
|
||||
new Attributes({
|
||||
@ -45,7 +45,7 @@ export class ConcreteNumbering extends XmlComponent {
|
||||
public readonly reference: string;
|
||||
public readonly instance: number;
|
||||
|
||||
constructor(options: IConcreteNumberingOptions) {
|
||||
public constructor(options: IConcreteNumberingOptions) {
|
||||
super("w:num");
|
||||
|
||||
this.numId = options.numId;
|
||||
@ -71,7 +71,7 @@ class LevelOverrideAttributes extends XmlAttributeComponent<{ readonly ilvl: num
|
||||
}
|
||||
|
||||
export class LevelOverride extends XmlComponent {
|
||||
constructor(levelNum: number, start?: number) {
|
||||
public constructor(levelNum: number, start?: number) {
|
||||
super("w:lvlOverride");
|
||||
this.root.push(new LevelOverrideAttributes({ ilvl: levelNum }));
|
||||
if (start !== undefined) {
|
||||
@ -85,7 +85,7 @@ class StartOverrideAttributes extends XmlAttributeComponent<{ readonly val: numb
|
||||
}
|
||||
|
||||
class StartOverride extends XmlComponent {
|
||||
constructor(start: number) {
|
||||
public constructor(start: number) {
|
||||
super("w:startOverride");
|
||||
this.root.push(new StartOverrideAttributes({ val: start }));
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ export class Numbering extends XmlComponent {
|
||||
private readonly concreteNumberingMap = new Map<string, ConcreteNumbering>();
|
||||
private readonly referenceConfigMap = new Map<string, object>();
|
||||
|
||||
constructor(options: INumberingOptions) {
|
||||
public constructor(options: INumberingOptions) {
|
||||
super("w:numbering");
|
||||
this.root.push(
|
||||
new DocumentAttributes({
|
||||
|
Reference in New Issue
Block a user