Skip to content

eslint/no-useless-concat Suspicious ​

What it does ​

Disallow unnecessary concatenation of literals or template literals

Why is this bad? ​

It’s unnecessary to concatenate two strings together.

Example ​

javascript
var foo = "a" + "b";

References ​

Released under the MIT License.