Dont-Concatenate-String-Literals¶
Sourcery rule id: dont-concatenate-string-literals
¶
Description¶
Do not concatenate string literals
Match¶
const errorMessage = 'This is a super long error that was thrown because \
of Batman. When you stop to think about how Batman had anything to do \
with this, you would get nowhere \
fast.';
Explanation¶
String literals should not be written across multiple lines because this makes them harder to read, maintain and search for. Instead, let them be longer than the maximum line length.
From the Airbnb JavaScript Style Guide