From 654909f110886138aa6909ee74e8482ac37e7c0f Mon Sep 17 00:00:00 2001 From: Olivier Zalmanski Date: Mon, 22 Apr 2024 14:22:06 +0200 Subject: [PATCH] improve --- eslint.config.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index d96f966..5cd4048 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -141,6 +141,7 @@ 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': [ @@ -148,22 +149,13 @@ module.exports = tsEslint.config( { varsIgnorePattern: 'onHomeyReady' }, ], '@typescript-eslint/prefer-readonly-parameter-types': 'off', + camelcase: 'off', 'no-ternary': 'off', 'no-underscore-dangle': ['error', { allow: ['__'] }], 'one-var': 'off', 'sort-keys': ['error', 'asc', { natural: true }], }, }, - { - files: ['**/*.ts'], - rules: { - '@typescript-eslint/naming-convention': 'off', - camelcase: [ - 'error', - { allow: ['^operation_mode$', '^target_temperature$'] }, - ], - }, - }, { files: ['**/*.ts'], rules: {