Skip to content
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

eslint-plugin-unicorn(prefer-spread) is triggering on strings #5248

Closed
tylerlaprade opened this issue Aug 27, 2024 · 0 comments · Fixed by #5265
Closed

eslint-plugin-unicorn(prefer-spread) is triggering on strings #5248

tylerlaprade opened this issue Aug 27, 2024 · 0 comments · Fixed by #5265
Labels
C-bug Category - Bug good first issue Experience Level - Good for newcomers

Comments

@tylerlaprade
Copy link

const x = "foo";
x.concat(x);

This should not be flagged as x is not an array.

@tylerlaprade tylerlaprade added the C-bug Category - Bug label Aug 27, 2024
@Boshen Boshen added the good first issue Experience Level - Good for newcomers label Aug 27, 2024
camc314 pushed a commit that referenced this issue Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category - Bug good first issue Experience Level - Good for newcomers
Projects
None yet
2 participants