From 4270eb8c62c847839bde3c8975d655f5a131d764 Mon Sep 17 00:00:00 2001 From: Miguel Lehmann Date: Tue, 19 Nov 2024 14:20:28 +0100 Subject: [PATCH] change config for spec files --- frontend/eslint.config.mjs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs index a52431b4e2..9ee4c8235a 100644 --- a/frontend/eslint.config.mjs +++ b/frontend/eslint.config.mjs @@ -3,15 +3,22 @@ import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; import unusedImports from "eslint-plugin-unused-imports"; + export default tseslint.config( - eslint.configs.recommended, - ...tseslint.configs.recommended, + eslint.configs.recommended, + ...tseslint.configs.recommended, + { + files: ['**/*.spec.ts'], + rules: { + "@typescript-eslint/no-explicit-any": "off" + }, + }, { plugins: { - "unused-imports": unusedImports, + 'unused-imports': unusedImports, }, rules: { - "unused-imports/no-unused-imports": "error", - } + 'unused-imports/no-unused-imports': 'error', + }, } );