diff --git a/.eslintrc.js b/.eslintrc.js index 83d26fd..27fd474 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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: {