You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal for no-useless-concat to report multiline strings #7947
We can bikeshed on the option name if necessary, but this seems like a perfectly reasonable enhancement request and I've given it a 👍. So we need a champion and two more 👍s (all from among the ESLint core team) to accept this issue.
It would search for two strings being concatenated on a line break with a new line character. I'm for it. I'd also be down for implementing it. It shouldn't be a terribly difficult rule to apply.
Probably not? That's a very specific case that I don't think it should flag, but I could see an argument for doing it, as it's most likely a bug (intended to either be written with a multi-line string template or with \r\n).
Thanks for your interest in improving ESLint. Unfortunately, it looks like this issue didn't get enough support from the team and so I'm closing it. While we wish we'd be able to accommodate everyone's requests, we do need to prioritize. We've found that issues failing to reach consensus after a long time tend to never do it, and as such, we close those issues. This doesn't mean the idea isn't interesting, just that it's not something the team can commit to.
Activity
platinumazure commentedon Jan 19, 2017
We can bikeshed on the option name if necessary, but this seems like a perfectly reasonable enhancement request and I've given it a 👍. So we need a champion and two more 👍s (all from among the ESLint core team) to accept this issue.
jhitchins88 commentedon Feb 5, 2017
Basically you want...
...to be written like...
The rule would be okay with this, correct?
It would search for two strings being concatenated on a line break with a new line character. I'm for it. I'd also be down for implementing it. It shouldn't be a terribly difficult rule to apply.
ljharb commentedon Feb 5, 2017
Should it also report on multiline strings ending in
\r\n?jhitchins88 commentedon Feb 5, 2017
I would assume, as it still ends in
\n. The bigger question is should it flag this:Probably not? That's a very specific case that I don't think it should flag, but I could see an argument for doing it, as it's most likely a bug (intended to either be written with a multi-line string template or with
\r\n).Thoughts?
ljharb commentedon Feb 5, 2017
Makes sense that it wouldn't flag it; people are rarely going to be doing that anyways.
not-an-aardvark commentedon Aug 14, 2017
Thanks for your interest in improving ESLint. Unfortunately, it looks like this issue didn't get enough support from the team and so I'm closing it. While we wish we'd be able to accommodate everyone's requests, we do need to prioritize. We've found that issues failing to reach consensus after a long time tend to never do it, and as such, we close those issues. This doesn't mean the idea isn't interesting, just that it's not something the team can commit to.