From 8aadda14f30a18950ca1402bf9bd06abc947912a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Mon, 4 Nov 2024 18:17:51 +0100 Subject: [PATCH] Updated jest eslint config usage --- eslint.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eslint.config.js b/eslint.config.js index 50bf803b..ba1ca1f3 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -169,9 +169,12 @@ export default tseslint.config( }, }, { - extends: [jest.recommended, jest.style], + ...jest.configs["flat/recommended"], + ...jest.configs["flat/style"], files: ["__tests__/**/*.test.ts", "__tests__/**/*.json"], 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", @@ -208,6 +211,7 @@ export default tseslint.config( rules: { "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-assignment": "off", + "@typescript-eslint/no-unsafe-member-access": "off", }, }, );