menu

no-useless-concat

Disallow concatenating adjacent string literals

Concatenating adjacent string literals produces a value that is already known in the source. Instead, you SHOULD write the value as one string or template literal.

Reported

1function message(): string {2    return "hello, " + "world";3}

Accepted

1function message(): string {2    return "hello, world";3}