Skip to content
Snippets Groups Projects
Commit 4d263489 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2914711 by droplet: JS codestyle: no-useless-concat

parent e4d6d968
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -3,7 +3,6 @@
"rules": {
"no-var": "off",
"no-useless-escape": "off",
"no-useless-concat": "off",
"no-use-before-define": "off",
"no-throw-literal": "off",
"no-shadow": "off",
......
......@@ -149,9 +149,7 @@
attributes.push(attr + ((attrMap[attr]) ? `="${attrMap[attr]}"` : ''));
}
}
html += `<button type="${button.type}" class="${button.classes}"` + ` ${attributes.join(' ')}>`;
html += button.label;
html += '</button>';
html += `<button type="${button.type}" class="${button.classes}" ${attributes.join(' ')}>${button.label}</button>`;
}
return html;
};
......
......@@ -66,9 +66,7 @@
attributes.push(attr + (attrMap[attr] ? '="' + attrMap[attr] + '"' : ''));
}
}
html += '<button type="' + button.type + '" class="' + button.classes + '"' + (' ' + attributes.join(' ') + '>');
html += button.label;
html += '</button>';
html += '<button type="' + button.type + '" class="' + button.classes + '" ' + attributes.join(' ') + '>' + button.label + '</button>';
}
return html;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment