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

@ -1,9 +1,9 @@
import { expect } from "chai";
import { DocumentDefaults } from "./document-defaults";
import { Formatter } from "@export/formatter";
import { DocumentDefaults } from "./document-defaults";
describe("DocumentDefaults", () => {
it("#constructor", () => {
const defaults = new DocumentDefaults({

View File

@ -1,5 +1,4 @@
/* tslint:disable */
function createLsdException(name, uiPriority, qFormat?, semiHidden?, unhideWhenUsed?) {
const createLsdException = (name, uiPriority, qFormat?, semiHidden?, unhideWhenUsed?) => {
"use strict";
return [
@ -13,9 +12,9 @@ function createLsdException(name, uiPriority, qFormat?, semiHidden?, unhideWhenU
},
},
];
}
};
export function DefaultStyle() {
export const DefaultStyle = () => {
var style = {
"w:styles": [
{
@ -208,4 +207,4 @@ export function DefaultStyle() {
};
return style;
}
};

View File

@ -1,10 +1,10 @@
import { expect } from "chai";
import { Formatter } from "@export/formatter";
import { EMPTY_OBJECT } from "@file/xml-components";
import * as defaultStyles from "./default-styles";
import { EMPTY_OBJECT } from "@file/xml-components";
describe("Default Styles", () => {
it("HeadingStyle#constructor", () => {