Skip to content

Commit a1ecd10

Browse files
authored
style: allow @typescript-eslint/no-redundant-type-constituents recommended eslint rule (#2989)
1 parent 4ce09f5 commit a1ecd10

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const globalIgnores = [
1111
];
1212

1313
export const typescriptRules = {
14-
'@typescript-eslint/no-redundant-type-constituents': 'off',
1514
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
1615
'@typescript-eslint/no-unsafe-argument': 'off',
1716
'@typescript-eslint/no-unsafe-assignment': 'off',

packages/uhk-common/src/config-serializer/config-items/key-action/helper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import { isAllowedScancode } from '../scancode-checker.js';
1717

1818
export class Helper {
1919

20-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
21-
static createKeyAction(source: KeyAction | UhkBuffer | any, macros: Macro[], serialisationInfo: SerialisationInfo): KeyAction {
20+
static createKeyAction(source: KeyAction | UhkBuffer, macros: Macro[], serialisationInfo: SerialisationInfo): KeyAction {
2221
if (source instanceof KeyAction) {
2322
return Helper.fromKeyAction(source);
2423
} else if (source instanceof UhkBuffer) {

packages/uhk-common/src/config-serializer/config-items/macro-action/helper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import { CommandMacroAction } from './command-macro-action.js';
1111

1212
export class Helper {
1313

14-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
15-
static createMacroAction(source: MacroAction | UhkBuffer | any, serialisationInfo: SerialisationInfo): MacroAction {
14+
static createMacroAction(source: MacroAction | UhkBuffer, serialisationInfo: SerialisationInfo): MacroAction {
1615
if (source instanceof MacroAction) {
1716
return Helper.fromMacroAction(source);
1817
} else if (source instanceof UhkBuffer) {

0 commit comments

Comments
 (0)