Skip to content

Commit

Permalink
fix: properly include options in ruleset factories
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg authored and brettz9 committed Aug 13, 2024
1 parent aed3194 commit 964712b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ const createStandaloneRulesetFactory = (ruleNames) => {
ruleName =>
typeof ruleName === "string"
? [ruleName, warnOrError]
: [ruleName[0], warnOrError, ...ruleName.slice(1)]
: [ruleName[0], [warnOrError, ...ruleName.slice(1)]]
)
),
};
Expand Down

0 comments on commit 964712b

Please sign in to comment.