Skip to content

Commit 3d977d4

Browse files
committed
refactor: fixed xo aspects prefer-const and one-var
… is never reassigned. Use const instead. & Split let declarations into multiple statements.
1 parent b2b9b84 commit 3d977d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Test for dynamically inserted images and iframes
22
const addDynamicContent = (event) => {
3-
let divElement = document.createElement('div'),
4-
imageElement = document.createElement('img'),
5-
iframeElement = document.createElement('iframe');
3+
const divElement = document.createElement('div');
4+
const imageElement = document.createElement('img');
5+
const iframeElement = document.createElement('iframe');
66

77
imageElement.setAttribute('is', 'loading-image');
88
// We're using a differing string at the end of the query than the regular one embedded directly into the page

0 commit comments

Comments
 (0)