https://twitter.com/therealyashsriv/status/1219691914523545601

We shouldn't generate code that might cause browser or linting to complain.

https://github.com/facebook/react/blob/0cf22a56a18790ef34c71bef14f64695c0498619/packages/legacy-events/SyntheticEvent.js#L259

It's also just a confusing pattern at best.
!dependencyNode.parent.computed &&
            dependencyNode.parent.property.type === 'Identifier' &&
            dependencyNode.parent.property.name === 'current' &&
            
            isInsideEffectCleanup(reference)
          ) {
            currentRefsInEffectCleanup.set(dependency, {
              reference,
              dependencyNode,
            });
          }
          if (dependencyNode.parent.type === 'TSTypeQuery') {
            continue;
          }
          const def = reference.resolved.defs[0];
          if (def == null) {
            continue;
          }
          
          if (def.node != null && def.node.init === node.parent) {
            continue;
          }
          
          if (def.type === 'TypeParameter') {
            continue;
          }
          
          
          if (!dependencies.has(dependency)) {
            const resolved = reference.resolved;