Skip to content

Commit

Permalink
perf(plugins/x): improve perf of 'no-forward-ref'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rel1cx committed Dec 7, 2024
1 parent 8f350f0 commit 4291bd1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default createRule<[], MessageID>({
},
name: RULE_NAME,
create(context) {
if (!context.sourceCode.text.includes("forwardRef")) return {};
const { version } = normalizeSettings(decodeSettings(context.settings));
if (compare(version, "19.0.0", "<")) return {};
return {
Expand Down

0 comments on commit 4291bd1

Please sign in to comment.