fix unused imports linter warnings
This commit is contained in:
@ -1,15 +1,12 @@
|
||||
import { Attributes, XmlComponent } from "../../xml-components";
|
||||
import { SectionProperties } from "./section-properties";
|
||||
import { XmlComponent } from "../../xml-components";
|
||||
|
||||
export class Body extends XmlComponent {
|
||||
|
||||
constructor() {
|
||||
super("w:body");
|
||||
// this.root.push(new SectionProperties()); not actually needed
|
||||
}
|
||||
|
||||
public push(component: XmlComponent): void {
|
||||
// this.root.splice(this.body.length - 1, 0, component);
|
||||
this.root.push(component);
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
import { XmlComponent } from "../xml-components";
|
||||
|
||||
export class ParagraphProperties extends XmlComponent {
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
import { Style } from "./style";
|
||||
|
||||
export class NumberProperties extends XmlComponent {
|
||||
|
||||
|
@ -8,7 +8,7 @@ import { DoubleStrike, Strike } from "./strike";
|
||||
import { Tab } from "./tab";
|
||||
import { Underline } from "./underline";
|
||||
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
import { XmlComponent } from "../xml-components";
|
||||
|
||||
export class Run extends XmlComponent {
|
||||
private properties: RunProperties;
|
||||
|
@ -1,5 +1,4 @@
|
||||
import * as express from "express";
|
||||
import * as fs from "fs";
|
||||
import { Document } from "../../docx/document";
|
||||
import { Numbering } from "../../numbering";
|
||||
import { Properties } from "../../properties";
|
||||
|
@ -1,6 +1,5 @@
|
||||
import * as appRoot from "app-root-path";
|
||||
import * as archiver from "archiver";
|
||||
import * as fs from "fs";
|
||||
import * as xml from "xml";
|
||||
import { Document } from "../../docx";
|
||||
import { Numbering } from "../../numbering";
|
||||
|
@ -2,4 +2,4 @@ export * from "./docx";
|
||||
export * from "./export";
|
||||
export { Numbering } from "./numbering";
|
||||
export { Styles } from "./styles";
|
||||
export * from './export';
|
||||
export * from "./export";
|
||||
|
@ -3,7 +3,6 @@ import { Indent } from "../docx/paragraph/indent";
|
||||
import { RunFonts } from "../docx/run/run-fonts";
|
||||
import { XmlComponent } from "../docx/xml-components";
|
||||
import { AbstractNumbering } from "./abstract-numbering";
|
||||
import { Level } from "./level";
|
||||
import { Num } from "./num";
|
||||
|
||||
export class Numbering extends XmlComponent {
|
||||
|
@ -1,16 +1,11 @@
|
||||
import { ParagraphProperties } from "../docx/paragraph/properties";
|
||||
import { Color, Italics, Size } from "../docx/run/formatting";
|
||||
import { RunProperties } from "../docx/run/properties";
|
||||
|
||||
import { Styles } from "./";
|
||||
import { DocumentDefaults } from "./defaults";
|
||||
import { ParagraphPropertiesDefaults } from "./defaults/paragraph-properties";
|
||||
import { RunPropertiesDefaults } from "./defaults/run-properties";
|
||||
import {
|
||||
Heading1Style, Heading2Style, Heading3Style, Heading4Style, Heading5Style, Heading6Style,
|
||||
ListParagraph, TitleStyle,
|
||||
} from "./style";
|
||||
// import { StyleAttributes } from "./style/attributes";
|
||||
|
||||
export class DefaultStylesFactory {
|
||||
|
||||
|
@ -1,8 +1,5 @@
|
||||
import { DocumentAttributes } from "../docx/document/document-attributes";
|
||||
import { XmlComponent } from "../docx/xml-components";
|
||||
import { DocumentDefaults } from "./defaults";
|
||||
import { LatentStyles } from "./latent-styles";
|
||||
import { LatentStyleException } from "./latent-styles/exceptions";
|
||||
import { ParagraphStyle } from "./style";
|
||||
|
||||
export class Styles extends XmlComponent {
|
||||
|
@ -1,5 +1,7 @@
|
||||
/* tslint:disable */
|
||||
import { assert } from "chai";
|
||||
import { Utility } from "./utility";
|
||||
/* tslint:enable */
|
||||
|
||||
describe("", () => {
|
||||
|
||||
|
@ -2,7 +2,6 @@ import { assert, expect } from "chai";
|
||||
import * as docx from "../../../docx";
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { Numbering } from "../../../numbering";
|
||||
import { Utility } from "../../utility";
|
||||
|
||||
describe("Paragraph", () => {
|
||||
let paragraph: docx.Paragraph;
|
||||
|
@ -1,6 +1,5 @@
|
||||
import { assert, expect } from "chai";
|
||||
import { Run } from "../../../docx/run";
|
||||
import { TextRun } from "../../../docx/run/text-run";
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { Utility } from "../../utility";
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { assert, expect } from "chai";
|
||||
import { TextRun } from "../../../docx/run/text-run";
|
||||
import * as u from "../../../docx/run/underline";
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { Utility } from "../../utility";
|
||||
|
@ -6,7 +6,6 @@ import { Paragraph } from "../../docx/paragraph";
|
||||
import { LocalPacker } from "../../export/packer/local";
|
||||
import { Properties } from "../../properties";
|
||||
import { DefaultStylesFactory } from "../../styles/factory";
|
||||
import { DefaultStyle } from "../../styles/sample";
|
||||
|
||||
describe("Packer", () => {
|
||||
let packer: LocalPacker;
|
||||
|
@ -20,7 +20,6 @@ describe("Styles", () => {
|
||||
|
||||
describe("#createParagraphStyle", () => {
|
||||
it("should create a new paragraph style and push it onto this collection", () => {
|
||||
const ps = styles.createParagraphStyle("pStyleId");
|
||||
const tree = new Formatter().format(styles)["w:styles"].filter((x) => !x._attr);
|
||||
expect(tree).to.deep.equal([{
|
||||
"w:style": [
|
||||
@ -32,7 +31,6 @@ describe("Styles", () => {
|
||||
});
|
||||
|
||||
it("should set the paragraph name if given", () => {
|
||||
const ps = styles.createParagraphStyle("pStyleId", "Paragraph Style");
|
||||
const tree = new Formatter().format(styles)["w:styles"].filter((x) => !x._attr);
|
||||
expect(tree).to.deep.equal([{
|
||||
"w:style": [
|
||||
|
Reference in New Issue
Block a user