From a2a22d31b4c6c94d983a11c9fdbf2329cce8e5a5 Mon Sep 17 00:00:00 2001 From: xdan Date: Sun, 27 Aug 2023 23:13:28 +0300 Subject: [PATCH] Fix linting --- src/core/selection/style/style.test.js | 3 --- src/plugins/font/config.ts | 2 +- src/plugins/size/size.test.js | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/core/selection/style/style.test.js b/src/core/selection/style/style.test.js index 301e0b00d..b011c9a36 100644 --- a/src/core/selection/style/style.test.js +++ b/src/core/selection/style/style.test.js @@ -912,9 +912,6 @@ describe('Apply style', () => { { enter: 'BR' } ] ].forEach(function runTest(args) { - if (!Array.isArray(args)) { - debugger; - } const [input, opt, output, jSettings] = args; if (Array.isArray(opt)) { diff --git a/src/plugins/font/config.ts b/src/plugins/font/config.ts index bf2379cda..80b642519 100644 --- a/src/plugins/font/config.ts +++ b/src/plugins/font/config.ts @@ -76,7 +76,7 @@ Config.prototype.controls.fontsize = { isChildActive: (editor, button): boolean => { const value = button.state.value; - const normalize = button.control.data?.normalize ?? ((v: unknown) => v); + const normalize = button.control.data?.normalize ?? ((v: T): T => v); return Boolean( value && button.control.args && diff --git a/src/plugins/size/size.test.js b/src/plugins/size/size.test.js index 840c07de4..23560c2fd 100644 --- a/src/plugins/size/size.test.js +++ b/src/plugins/size/size.test.js @@ -192,7 +192,7 @@ }); }); - it('Should set editor height by content in iframe mode', async () =>{ + it('Should set editor height by content in iframe mode', async () => { const editor = getJodit({ iframe: true });