tools: fix bug in prefer-primordials ESLint rule
#40628
+78
−4
Merged