diff --git a/src/index.js b/src/index.js index b9e9f135..eaf2e203 100644 --- a/src/index.js +++ b/src/index.js @@ -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)]] ) ), };