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 20, 2023
1 parent 2f515ea commit 564555a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eslintrc.js
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 564555a

Please sign in to comment.