From f2a7ea3af919548d41383734e8a3667086a44bcc Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Wed, 31 May 2023 06:10:51 +0300
Subject: eslint: enforce semicolons only before statement continuation chars
---
src/main/assets/icon.js | 31 +++++++++++++++++--------------
1 file changed, 17 insertions(+), 14 deletions(-)
(limited to 'src/main/assets/icon.js')
diff --git a/src/main/assets/icon.js b/src/main/assets/icon.js
index 6ab3cd81..c94a1663 100644
--- a/src/main/assets/icon.js
+++ b/src/main/assets/icon.js
@@ -1,40 +1,43 @@
-import evilIcons from 'evil-icons/assets/sprite.svg';
+import evilIcons from 'evil-icons/assets/sprite.svg'
function icon(name, { size = '', className = '' }) {
- const classes = `icon icon--${name} icon--${size} ${className}`.trim();
+ const classes = `icon icon--${name} icon--${size} ${className}`.trim()
var icon = '';
+ ''
var html = '
' +
wrapSpinner(icon, classes) +
- '
';
+ ''
- return html;
+ return html
}
function wrapSpinner(html, klass) {
if (klass.indexOf('spinner') > -1) {
- return '' + html + '
';
+ return '' + html + '
'
} else {
- return html;
+ return html
}
}
+/**
+ *
+ */
export default function renderIcons() {
- var render = true;
- var icons = document.querySelectorAll('[data-icon]');
+ var render = true
+ var icons = document.querySelectorAll('[data-icon]')
for (var i = 0; i < icons.length; i++) {
- var currentIcon = icons[i];
- var name = currentIcon.getAttribute('data-icon');
+ var currentIcon = icons[i]
+ var name = currentIcon.getAttribute('data-icon')
var options = {
className: currentIcon.className,
size: currentIcon.getAttribute('data-size')
- };
+ }
- currentIcon.insertAdjacentHTML('beforebegin', icon(name, options));
- currentIcon.parentNode.removeChild(currentIcon);
+ currentIcon.insertAdjacentHTML('beforebegin', icon(name, options))
+ currentIcon.parentNode.removeChild(currentIcon)
}
}
--
cgit v1.2.3