@samitouri / QOS-React-2 / commits / 66ae640b36

[eprh] fix react-compiler rules missing `meta.docs.url` property (#35258)

## Summary To help people access the documentation easier, we can [add `meta.docs.url`](https://eslint.org/docs/latest/extend/custom-rules#:~:text=Specifies%20the%20URL) to the new react-compiler rules. This allows IDEs to make the rule name a clickable link. ## How did you test this change? `yarn test`, `yarn prettier`, `yarn lint` and in a separate project [using file:// URLs](https://stackoverflow.com/a/38417065)

Kyℓe Hensel committed Dec 5, 2025 at 07:28 UTC 66ae640b362d75555649701e91c5ae26363db45b
1 file changed +1
packages/eslint-plugin-react-hooks/src/shared/ReactCompiler.ts
+1
@@ -151,6 +151,7 @@ function makeRule(rule: LintRule): Rule.RuleModule {
151 docs: {
152 description: rule.description,
153 recommended: rule.preset === LintRulePreset.Recommended,
154 + url: `https://react.dev/reference/eslint-plugin-react-hooks/lints/${rule.name}`,
155 },
156 fixable: 'code',
157 hasSuggestions: true,