diff --git a/ariston/lib/APICallErrorData.ts b/ariston/lib/APICallErrorData.ts index 9226c55..9e80b0f 100644 --- a/ariston/lib/APICallErrorData.ts +++ b/ariston/lib/APICallErrorData.ts @@ -7,7 +7,6 @@ interface APICallContextDataWithErrorMessage extends APICallContextData { readonly errorMessage: string } -// eslint-disable-next-line @typescript-eslint/no-explicit-any const withErrorMessage = APICallContextData>( base: T, error: AxiosError, diff --git a/decorators/addToLogs.ts b/decorators/addToLogs.ts index ed21482..2b5dca4 100644 --- a/decorators/addToLogs.ts +++ b/decorators/addToLogs.ts @@ -4,14 +4,7 @@ const FIRST_CHAR = 0 const PARENTHESES = '()' const addToLogs = - < - T extends new ( - // eslint-disable-next-line @typescript-eslint/no-explicit-any - ...args: any[] - ) => SimpleClass, - >( - ...logs: string[] - ) => + SimpleClass>(...logs: string[]) => (target: T, context: ClassDecoratorContext): T => { class LogsDecorator extends target { public error(...args: unknown[]): void { diff --git a/eslint.config.js b/eslint.config.js index 06fa7f2..5585550 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -142,22 +142,27 @@ module.exports = tsEslint.config( }, ], '@typescript-eslint/naming-convention': 'off', + '@typescript-eslint/no-explicit-any': ['error', { ignoreRestArgs: true }], '@typescript-eslint/no-magic-numbers': ['error', { ignoreEnums: true }], '@typescript-eslint/no-unused-vars': [ 'error', { varsIgnorePattern: 'onHomeyReady' }, ], '@typescript-eslint/prefer-readonly-parameter-types': 'off', - camelcase: [ - 'error', - { allow: ['^operation_mode$', '^target_temperature$'] }, - ], 'no-ternary': 'off', 'no-underscore-dangle': ['error', { allow: ['__'] }], 'one-var': 'off', 'sort-keys': ['error', 'asc', { natural: true }], }, }, + { + rules: { + camelcase: [ + 'error', + { allow: ['^operation_mode$', '^target_temperature$'] }, + ], + }, + }, { files: ['**/*.ts'], rules: {