From b3c0ce247945e7b8c9a3751a0148463c13fd8fd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kiss=20R=C3=B3bert?= Date: Wed, 8 Jul 2026 17:31:07 +0200 Subject: [PATCH] style: allow @typescript-eslint/no-redundant-type-constituents recommended eslint rule --- eslint.config.mjs | 1 - .../src/config-serializer/config-items/key-action/helper.ts | 3 +-- .../src/config-serializer/config-items/macro-action/helper.ts | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 3817a761a52..f4c81904362 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -11,7 +11,6 @@ const globalIgnores = [ ]; export const typescriptRules = { - '@typescript-eslint/no-redundant-type-constituents': 'off', '@typescript-eslint/no-unnecessary-type-assertion': 'off', '@typescript-eslint/no-unsafe-argument': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', diff --git a/packages/uhk-common/src/config-serializer/config-items/key-action/helper.ts b/packages/uhk-common/src/config-serializer/config-items/key-action/helper.ts index a02f88e78b0..b31f2590199 100644 --- a/packages/uhk-common/src/config-serializer/config-items/key-action/helper.ts +++ b/packages/uhk-common/src/config-serializer/config-items/key-action/helper.ts @@ -17,8 +17,7 @@ import { isAllowedScancode } from '../scancode-checker.js'; export class Helper { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static createKeyAction(source: KeyAction | UhkBuffer | any, macros: Macro[], serialisationInfo: SerialisationInfo): KeyAction { + static createKeyAction(source: KeyAction | UhkBuffer, macros: Macro[], serialisationInfo: SerialisationInfo): KeyAction { if (source instanceof KeyAction) { return Helper.fromKeyAction(source); } else if (source instanceof UhkBuffer) { diff --git a/packages/uhk-common/src/config-serializer/config-items/macro-action/helper.ts b/packages/uhk-common/src/config-serializer/config-items/macro-action/helper.ts index 2d55e1685b4..3b15a49dfda 100644 --- a/packages/uhk-common/src/config-serializer/config-items/macro-action/helper.ts +++ b/packages/uhk-common/src/config-serializer/config-items/macro-action/helper.ts @@ -11,8 +11,7 @@ import { CommandMacroAction } from './command-macro-action.js'; export class Helper { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - static createMacroAction(source: MacroAction | UhkBuffer | any, serialisationInfo: SerialisationInfo): MacroAction { + static createMacroAction(source: MacroAction | UhkBuffer, serialisationInfo: SerialisationInfo): MacroAction { if (source instanceof MacroAction) { return Helper.fromMacroAction(source); } else if (source instanceof UhkBuffer) {