See failing test in https://github.com/facebook/react/pull/22044. Even if the PR gets stale, we should implement this check because currently it lets you circumvent the rule.