Use new eslint-plugin-functional instead of tslint-immutable

This commit is contained in:
Dolan Miu
2022-09-15 20:00:50 +01:00
parent d020d59b11
commit e90d97b813
70 changed files with 321 additions and 436 deletions

View File

@ -98,7 +98,7 @@ export interface ITableOfContentsOptions {
* with each doublet being a comma-separated set of style name and table of content level.
* \t can be combined with \o.
*/
readonly stylesWithLevels?: StyleLevel[];
readonly stylesWithLevels?: readonly StyleLevel[];
/**
* \u Uses the applied paragraph outline level.

View File

@ -14,9 +14,7 @@ describe("Table of Contents", () => {
});
it("should construct a TOC with all the options and alias", () => {
const styles = new Array<StyleLevel>();
styles.push(new StyleLevel("SL", 1));
styles.push(new StyleLevel("SL", 2));
const styles = [new StyleLevel("SL", 1), new StyleLevel("SL", 2)];
const props = {
captionLabel: "A",