Skip to content

Commit

Permalink
chore(.eslintrc): enable additional jest plugin rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jun 23, 2023
1 parent 96b981a commit 7146e71
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ module.exports = {
extends: ["plugin:jest/recommended", "plugin:jest/style"],
files: ["src/**/*.test.js"],
plugins: ["jest"],
rules: {
"jest/no-duplicate-hooks": "error",
"jest/no-test-return-statement": "error",
"jest/prefer-comparison-matcher": "error",
"jest/prefer-each": "warn",
"jest/prefer-equality-matcher": "error",
"jest/prefer-expect-resolves": "error",
"jest/prefer-hooks-in-order": "error",
"jest/prefer-hooks-on-top": "error",
"jest/prefer-mock-promise-shorthand": "error",
"jest/prefer-spy-on": "error",
"jest/require-top-level-describe": "error",
},
},
],
parserOptions: {
Expand Down

0 comments on commit 7146e71

Please sign in to comment.