Skip to content

Commit

Permalink
refactor: we're recommending all rules right now
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Mar 21, 2024
1 parent c69b768 commit d1bd6da
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -36,6 +28,8 @@ const allRules = Object.entries(rules).reduce(
{}
);

const recommendedRules = allRules;

const plugin = {
meta: {
name: packageName,
Expand Down

0 comments on commit d1bd6da

Please sign in to comment.