Fix ESLinting errors and remove TSLint

This commit is contained in:
Dolan Miu
2022-08-31 08:59:27 +01:00
parent 1bdf9a4987
commit ebcb37cbed
30 changed files with 104 additions and 201 deletions

View File

@ -19,12 +19,8 @@ import { TextRun } from "./run";
describe("Paragraph", () => {
before(() => {
stub(convenienceFunctions, "uniqueId").callsFake(() => {
return "test-unique-id";
});
stub(convenienceFunctions, "uniqueNumericId").callsFake(() => {
return -101;
});
stub(convenienceFunctions, "uniqueId").callsFake(() => "test-unique-id");
stub(convenienceFunctions, "uniqueNumericId").callsFake(() => -101);
});
after(() => {

View File

@ -10,9 +10,7 @@ import { ImageRun } from "./image-run";
describe("ImageRun", () => {
before(() => {
stub(convenienceFunctions, "uniqueId").callsFake(() => {
return "test-unique-id";
});
stub(convenienceFunctions, "uniqueId").callsFake(() => "test-unique-id");
});
after(() => {

View File

@ -2,13 +2,11 @@ import { expect } from "chai";
import { Formatter } from "@export/formatter";
import { BorderStyle } from "@file/border";
// import { FootnoteReferenceRun } from "@file/footnotes/footnote/run/reference-run";
import { ShadingType } from "@file/shading";
import { SpaceType } from "@file/space-type";
import { Run } from "./";
import { EmphasisMarkType } from "./emphasis-mark";
import { PageNumber } from "./run";
import { PageNumber, Run } from "./run";
import { UnderlineType } from "./underline";
describe("Run", () => {

View File

@ -1,11 +1,9 @@
import { expect } from "chai";
import { EmphasisMarkType } from "./emphasis-mark";
import { Formatter } from "@export/formatter";
import { EmphasisMarkType } from "./emphasis-mark";
import { UnderlineType } from "./underline";
import { SymbolRun } from "./symbol-run";
describe("SymbolRun", () => {