Skip to content

Commit

Permalink
Updated jest eslint config usage
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Nov 4, 2024
1 parent aac6ec7 commit 8aadda1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
},
},
);
Expand Down

0 comments on commit 8aadda1

Please sign in to comment.