Skip to content

Commit 1ee1049

Browse files
committed
chore: deactivating eslint on these ones
and aligning the related comments to the eslint config by this
1 parent 3d6cf74 commit 1ee1049

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/loading-attribute-polyfill.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,18 @@ function restoreSource(lazyItem) {
6666

6767
// Not using .dataset within those upfollowing lines of code for polyfill independent compatibility down to IE9
6868
srcsetItems.forEach((item) => {
69+
/* eslint-disable unicorn/prefer-dom-node-dataset */
6970
if (item.hasAttribute('data-lazy-srcset')) {
7071
item.setAttribute('srcset', item.getAttribute('data-lazy-srcset'));
7172
item.removeAttribute('data-lazy-srcset'); // Not using delete .dataset here for compatibility down to IE9
7273
}
74+
/* eslint-enable unicorn/prefer-dom-node-dataset */
7375
});
7476

77+
/* eslint-disable unicorn/prefer-dom-node-dataset */
7578
lazyItem.setAttribute('src', lazyItem.getAttribute('data-lazy-src'));
7679
lazyItem.removeAttribute('data-lazy-src'); // Not using delete .dataset here for compatibility down to IE9
80+
/* eslint-enable unicorn/prefer-dom-node-dataset */
7781
}
7882

7983
/**

0 commit comments

Comments
 (0)