-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
prefer-at
should also mark substrings of length 1
#2203
Comments
It's a good idea. But we have a problem to add this rule. And we can't check |
While not ideal, the common solution for this is to introduce an option to |
Accepted. |
prefer-at
should also mark substrings of length 1prefer-at
should also mark substrings of length 1
IMO there is no need for a new option, as slice is effectively a substring and thus should also use .charAt/at when possible. EDIT: Oh I see. Because the option is prone to being configured wrong. Edit2: Maybe this will end up with requiring type information anyway. 🤷 |
Description
The
prefer-at
rule should also check for substrings of length 1.Fail
Pass
or
And maybe:
Additional Info
No response
The text was updated successfully, but these errors were encountered: