Skip to content

Commit

Permalink
feat(linter): keep old namespaced rules names
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Dec 15, 2023
1 parent d7287b3 commit 9e74ff9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-plugin/src/resolve-workspace-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export const workspaceRules = ((): ESLintRules => {
const namespacedRules: ESLintRules = {};
for (const [ruleName, ruleConfig] of Object.entries(rules as ESLintRules)) {
namespacedRules[`${WORKSPACE_RULE_PREFIX}-${ruleName}`] = ruleConfig;
// keep the old namespaced rules for backwards compatibility
namespacedRules[`${WORKSPACE_RULE_PREFIX}/${ruleName}`] = ruleConfig;
}
return namespacedRules;
} catch (err) {
Expand Down

0 comments on commit 9e74ff9

Please sign in to comment.