From 5756ab8c149fe250a62ff69084e750c663472ead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Tue, 29 Oct 2024 17:33:10 +0100 Subject: [PATCH] Updated jest eslint config usage --- packages/frontend/eslint.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/frontend/eslint.config.js b/packages/frontend/eslint.config.js index 7b5943f4a..8a9fc2aa5 100644 --- a/packages/frontend/eslint.config.js +++ b/packages/frontend/eslint.config.js @@ -238,9 +238,12 @@ export default tseslint.config( }, }, { - extends: [jest.recommended, jest.style], + ...jest.configs["flat/recommended"], + ...jest.configs["flat/style"], files: ["__tests__/**/*.test.ts", "__test__/**/*.test.tsx"], rules: { + ...jest.configs["flat/recommended"].rules, + ...jest.configs["flat/style"].rules, "jest/consistent-test-it": ["error", { withinDescribe: "test" }], "jest/no-conditional-in-test": "error", "jest/no-confusing-set-timeout": "error",