Skip to content

Commit

Permalink
feat(eslint-plugin): include docs URL in lint message (#3944)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Jul 11, 2023
1 parent 2efd805 commit a1576de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/eslint-plugin/src/rule-creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,11 @@ export function createRule<
},
};

for (const [key, message] of Object.entries(configOverwrite.meta.messages)) {
(configOverwrite.meta.messages as any)[key] = `${message} (${docsUrl(
config.name
)})`;
}

return ESLintUtils.RuleCreator(docsUrl)(configOverwrite);
}

0 comments on commit a1576de

Please sign in to comment.