New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename "no-native-reassign" to "no-global-assign" #6586
Comments
With our current infrastructure, this is a breaking change. If the necessary infrastructure changes are done to support aliasing (requires separate issue, discussion for acceptance, and pull request), then I'll remove the "breaking" label. I'm personally 👍 for this change, even if we do it as a breaking change. The name of the rule right now is just plain wrong (IMO). |
We don't currently have a way of aliasing rules, so this is really a core enhancement request. |
Per TSC meeting, we agree that we should rename This involves:
|
Just to clarify, will the rule be called |
Can Proxies solve this issue? Not used them now but I can imagine Proxies are helpful in such a case. |
@jacksonrayhamilton ooh, nice catch, I completely missed that. I think @fibric proxies do not help this use case. |
@nzakas should we import the new one instead of just copying it? If it is deprecated, leaving the old copy intact seems reasonable to me. It shouldn't get future changes by means of the new rule. |
@alberto hmmm, good point. My concern was that having two rules that are the same would be confusing in the code base , but I suppose we can solve that by putting a deprecation comment at the top of the file. |
There is a problem with this. |
We weren't going to disable it, only deprecate it, so that shouldn't affect anyone. This is also why I thought having one rule reference the other was a good idea, so the references act the same. In any case, we can't change |
As mentioned in #6395, the name of the rule "no-native-reassign" is confusing, because the rule covers more than native reassignments. The name was so misleading that no one realized the rule worked the way it did for several months. Therefore, I think the rule should be renamed to "no-global-assign".
One issue brought up in that thread was that a name change would be breaking. It doesn't have to be; we could have the old name (and docs url) alias the new one, promote the new name wherever possible, and mention the alias in the rule's documentation. Aliasing could be automated with metadata.
The text was updated successfully, but these errors were encountered: