- Linting (ESLint): Apply latest ash-nazg (with latest unicorn)

- npm: Update devDeps
This commit is contained in:
Brett Zamir
2019-12-23 09:16:16 +08:00
parent 5f9085be1b
commit 31a98c1408
21 changed files with 711 additions and 372 deletions

View File

@@ -120,7 +120,8 @@
viableNextSibling = viableNextSibling.nextSibling;
}
var node = convertNodesIntoANode(nodes);
var node = convertNodesIntoANode(nodes); // eslint-disable-next-line unicorn/prefer-modern-dom-apis
parent.insertBefore(node, viableNextSibling);
},
replaceWith: function replaceWith() {
@@ -141,6 +142,7 @@
if (this.parentNode === parent) {
parent.replaceChild(node, this);
} else {
// eslint-disable-next-line unicorn/prefer-modern-dom-apis
parent.insertBefore(node, viableNextSibling);
}
},

View File

@@ -365,7 +365,6 @@ var svgEditorExtension_imagelib = (function () {
return $.process_cancel(message);
case 39:
// eslint-disable-next-line require-atomic-updates
transferStopped = true; // Should a message be sent back to the frame?
$('#dialog_box').hide();

View File

@@ -355,7 +355,6 @@ var svgEditorExtension_storage = (function () {
// doesn't even want to remember their not wanting
// storage, so we don't set the cookie or continue on with
// setting storage on beforeunload
// eslint-disable-next-line require-atomic-updates
document.cookie = 'svgeditstore=' + encodeURIComponent(pref) + '; expires=Fri, 31 Dec 9999 23:59:59 GMT'; // 'prefsAndContent' | 'prefsOnly'
// If the URL was configured to always insist on a prompt, if
// the user does indicate a wish to store their info, we

15
dist/index-es.js vendored
View File

@@ -14771,8 +14771,7 @@ function SvgCanvas(container, config) {
if (extObj) {
extObj.name = name;
} // eslint-disable-next-line require-atomic-updates
}
extensions[name] = extObj;
return _context.abrupt("return", call('extension_added', extObj));
@@ -21120,7 +21119,7 @@ function SvgCanvas(container, config) {
continue;
}
children[i++] = elem = parent.insertBefore(elem, anchor);
children[i++] = elem = anchor.before(elem);
batchCmd.addSubCommand(new MoveElementCommand$1(elem, oldNextSibling, oldParent));
} // remove the group from the selection
@@ -34347,22 +34346,17 @@ editor.init = function () {
case 11:
// set icon size
setIconSize($$b('#iconsize').val());
/* eslint-disable require-atomic-updates */
// set grid setting
setIconSize($$b('#iconsize').val()); // set grid setting
curConfig.gridSnapping = $$b('#grid_snapping_on')[0].checked;
curConfig.snappingStep = $$b('#grid_snapping_step').val();
curConfig.gridColor = $$b('#grid_color').val();
curConfig.showRulers = $$b('#show_rulers')[0].checked;
/* eslint-enable require-atomic-updates */
$$b('#rulers').toggle(curConfig.showRulers);
if (curConfig.showRulers) {
updateRulers();
} // eslint-disable-next-line require-atomic-updates
}
curConfig.baseUnit = $$b('#base_unit').val();
svgCanvas.setConfig(curConfig);
@@ -36391,7 +36385,6 @@ editor.init = function () {
}));
case 15:
// eslint-disable-next-line require-atomic-updates
extsPreLang.length = 0;
_context17.next = 19;
break;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

15
dist/index-umd.js vendored
View File

@@ -14777,8 +14777,7 @@
if (extObj) {
extObj.name = name;
} // eslint-disable-next-line require-atomic-updates
}
extensions[name] = extObj;
return _context.abrupt("return", call('extension_added', extObj));
@@ -21126,7 +21125,7 @@
continue;
}
children[i++] = elem = parent.insertBefore(elem, anchor);
children[i++] = elem = anchor.before(elem);
batchCmd.addSubCommand(new MoveElementCommand$1(elem, oldNextSibling, oldParent));
} // remove the group from the selection
@@ -34353,22 +34352,17 @@
case 11:
// set icon size
setIconSize($$b('#iconsize').val());
/* eslint-disable require-atomic-updates */
// set grid setting
setIconSize($$b('#iconsize').val()); // set grid setting
curConfig.gridSnapping = $$b('#grid_snapping_on')[0].checked;
curConfig.snappingStep = $$b('#grid_snapping_step').val();
curConfig.gridColor = $$b('#grid_color').val();
curConfig.showRulers = $$b('#show_rulers')[0].checked;
/* eslint-enable require-atomic-updates */
$$b('#rulers').toggle(curConfig.showRulers);
if (curConfig.showRulers) {
updateRulers();
} // eslint-disable-next-line require-atomic-updates
}
curConfig.baseUnit = $$b('#base_unit').val();
svgCanvas.setConfig(curConfig);
@@ -36397,7 +36391,6 @@
}));
case 15:
// eslint-disable-next-line require-atomic-updates
extsPreLang.length = 0;
_context17.next = 19;
break;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -14549,8 +14549,7 @@ var SvgCanvas = (function () {
if (extObj) {
extObj.name = name;
} // eslint-disable-next-line require-atomic-updates
}
extensions[name] = extObj;
return _context.abrupt("return", call('extension_added', extObj));
@@ -20898,7 +20897,7 @@ var SvgCanvas = (function () {
continue;
}
children[i++] = elem = parent.insertBefore(elem, anchor);
children[i++] = elem = anchor.before(elem);
batchCmd.addSubCommand(new MoveElementCommand$1(elem, oldNextSibling, oldParent));
} // remove the group from the selection

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long