no-multi-str
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"no-multi-str": "error",
},
},
];const x = "some very \
long text";const x = "some very long text";
const y = "some very " +
"long text";Examples from the ESLint documentation.
no-multi-str
eslint
export default [
{
rules: {
"no-multi-str": "error",
},
},
];no-multi-str
eslint plugin · style
{
"rules": {
"no-multi-str": "error"
}
}style/noMultilineString
style · since 2.3.8
{
"linter": {
"rules": {
"style": {
"noMultilineString": "error"
}
}
}
}Disallow throwing literals as exceptions
Disallow new operators with the Function object
Disallow unnecessary computed property keys in objects and classes
Disallow unnecessary calls to .bind()
Require or disallow Unicode byte order mark (BOM)