From 14e4ee086fef1cf9edffbae21bcf164c23db6ec9 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 20 Dec 2023 23:30:47 +0000 Subject: [PATCH] adjust some linting rules Signed-off-by: Eric --- .eslintrc.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 6ba689e332..527f17bba7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -14,10 +14,9 @@ module.exports = { '@elastic/eslint-config-kibana', 'plugin:@elastic/eui/recommended', 'plugin:react-hooks/recommended', - "eslint:recommended", "plugin:cypress/recommended", - "plugin:import/recommended", - "prettier" + 'plugin:jest/recommended', + 'plugin:prettier/recommended', ], env: { 'cypress/globals': true, @@ -26,6 +25,14 @@ module.exports = { 'cypress', ], rules: { + '@typescript-eslint/no-unused-vars': [ + 'error', + { + argsIgnorePattern: '^_', + varsIgnorePattern: '^_', + caughtErrorsIgnorePattern: '^_', + }, + ], '@osd/eslint/no-restricted-paths': [ 'error', { @@ -49,6 +56,7 @@ module.exports = { { files: ['**/*.{js,ts,tsx}'], rules: { + '@typescript-eslint/no-explicit-any': 'warn', 'no-console': 0, '@osd/eslint/require-license-header': [ 'error',