Skip to content

Commit

Permalink
fix(eslint): correct error message for non-existent rules in convertC…
Browse files Browse the repository at this point in the history
…onfig function
  • Loading branch information
johnsoncodehk committed Dec 2, 2024
1 parent 1cc6be2 commit fbdcfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function convertConfig(rulesConfig: Record<string, Severity | [Severity,
}
ruleModule = plugin.rules[ruleName];
if (!ruleModule) {
throw new Error(`Rule "${rule}" does not exist in plugin "${pluginName}".`);
throw new Error(`Rule "${ruleName}" does not exist in plugin "${pluginName}".`);
}
}
else {
Expand Down

0 comments on commit fbdcfa6

Please sign in to comment.