- Linting (ESLint): Apply latest ash-nazg (with latest unicorn)
- npm: Update devDeps
This commit is contained in:
@@ -150,7 +150,6 @@ export default {
|
||||
|
||||
if (mode !== 'm') {
|
||||
await $.process_cancel(message);
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
transferStopped = true;
|
||||
// Should a message be sent back to the frame?
|
||||
|
||||
|
||||
@@ -247,7 +247,6 @@ export default {
|
||||
// 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
|
||||
|
||||
2
editor/external/dom-polyfill/dom-polyfill.js
vendored
2
editor/external/dom-polyfill/dom-polyfill.js
vendored
@@ -89,6 +89,7 @@ const ChildNode = {
|
||||
viableNextSibling = viableNextSibling.nextSibling;
|
||||
}
|
||||
const node = convertNodesIntoANode(nodes);
|
||||
// eslint-disable-next-line unicorn/prefer-modern-dom-apis
|
||||
parent.insertBefore(node, viableNextSibling);
|
||||
},
|
||||
replaceWith (...nodes) {
|
||||
@@ -103,6 +104,7 @@ const ChildNode = {
|
||||
if (this.parentNode === parent) {
|
||||
parent.replaceChild(node, this);
|
||||
} else {
|
||||
// eslint-disable-next-line unicorn/prefer-modern-dom-apis
|
||||
parent.insertBefore(node, viableNextSibling);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -4845,17 +4845,14 @@ editor.init = function () {
|
||||
// set icon size
|
||||
setIconSize($('#iconsize').val());
|
||||
|
||||
/* eslint-disable require-atomic-updates */
|
||||
// set grid setting
|
||||
curConfig.gridSnapping = $('#grid_snapping_on')[0].checked;
|
||||
curConfig.snappingStep = $('#grid_snapping_step').val();
|
||||
curConfig.gridColor = $('#grid_color').val();
|
||||
curConfig.showRulers = $('#show_rulers')[0].checked;
|
||||
/* eslint-enable require-atomic-updates */
|
||||
|
||||
$('#rulers').toggle(curConfig.showRulers);
|
||||
if (curConfig.showRulers) { updateRulers(); }
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
curConfig.baseUnit = $('#base_unit').val();
|
||||
|
||||
svgCanvas.setConfig(curConfig);
|
||||
@@ -6270,7 +6267,6 @@ editor.init = function () {
|
||||
importLocale: getImportLocale({defaultLang: lang, defaultName: ext.name})
|
||||
});
|
||||
}));
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
extsPreLang.length = 0;
|
||||
} else {
|
||||
loadedExtensionNames.forEach((loadedExtensionName) => {
|
||||
|
||||
@@ -1186,7 +1186,6 @@ this.addExtension = async function (name, extInitFunc, {$: jq, importLocale}) {
|
||||
extObj.name = name;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
extensions[name] = extObj;
|
||||
return call('extension_added', extObj);
|
||||
};
|
||||
@@ -3976,7 +3975,6 @@ this.rasterExport = async function (imgType, quality, exportWindowName, opts = {
|
||||
const svg = this.svgCanvasToString();
|
||||
|
||||
if (!canvg) {
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
({canvg} = await importSetGlobal(curConfig.canvgPath + 'canvg.js', {
|
||||
global: 'canvg'
|
||||
}));
|
||||
@@ -6757,7 +6755,7 @@ this.ungroupSelectedElement = function () {
|
||||
continue;
|
||||
}
|
||||
|
||||
children[i++] = elem = parent.insertBefore(elem, anchor);
|
||||
children[i++] = elem = anchor.before(elem);
|
||||
batchCmd.addSubCommand(new MoveElementCommand(elem, oldNextSibling, oldParent));
|
||||
}
|
||||
|
||||
|
||||
@@ -14774,8 +14774,7 @@
|
||||
|
||||
if (extObj) {
|
||||
extObj.name = name;
|
||||
} // eslint-disable-next-line require-atomic-updates
|
||||
|
||||
}
|
||||
|
||||
extensions[name] = extObj;
|
||||
return _context.abrupt("return", call('extension_added', extObj));
|
||||
@@ -21123,7 +21122,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
|
||||
|
||||
@@ -34350,22 +34349,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);
|
||||
@@ -36394,7 +36388,6 @@
|
||||
}));
|
||||
|
||||
case 15:
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
extsPreLang.length = 0;
|
||||
_context17.next = 19;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user