From 3971adebcbdd949ee438c9fade816ecfe5951c3f Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Sat, 17 Feb 2024 09:33:09 +1300 Subject: [PATCH] refactor: we're recommending all rules right now --- src/index.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/index.js b/src/index.js index e1d1920..0741088 100644 --- a/src/index.js +++ b/src/index.js @@ -20,14 +20,6 @@ import { // import all rules in src/rules and re-export them for .eslintrc configs export const rules = requireIndex(`${__dirname}/rules`); -const recommendedRules = Object.entries(rules).reduce( - (memo, [name, rule]) => ({ - ...memo, - ...(rule.meta.docs.recommended ? { [`jest-dom/${name}`]: "error" } : {}), - }), - {} -); - const allRules = Object.entries(rules).reduce( (memo, [name]) => ({ ...memo, @@ -36,6 +28,8 @@ const allRules = Object.entries(rules).reduce( {} ); +const recommendedRules = allRules; + const plugin = { meta: { name: packageName,