- Linting: For non-jQuery methods, apply no-fn-reference-in-iterator rule (though still keep rule disabled due to numerous jQuery false positives)

- Linting: With num. of warnings set to 0, probably need to disable `check-examples` for those environments having problems
- Linting: Reenable Unicorn rules now that updated
This commit is contained in:
Brett Zamir
2020-07-26 10:11:41 +08:00
parent 630a76c1b6
commit 41f9d801bf
16 changed files with 40 additions and 40 deletions

View File

@@ -47,6 +47,7 @@
const node = document.createDocumentFragment();
nodes.forEach(n => {
// // eslint-disable-next-line unicorn/prefer-node-append
node.appendChild(n);
});
return node;
@@ -59,7 +60,8 @@
},
append(...nodes) {
nodes = convertNodesIntoANode(nodes);
nodes = convertNodesIntoANode(nodes); // // eslint-disable-next-line unicorn/prefer-node-append
this.appendChild(nodes);
}

4
dist/index-es.js vendored
View File

@@ -20032,10 +20032,10 @@ class SvgCanvas {
elem.attr.id = changedIDs[elem.attr.id];
}
if (elem.children) elem.children.forEach(checkIDs);
if (elem.children) elem.children.forEach(child => checkIDs(child));
}
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
clipb.forEach(elem => checkIDs(elem)); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
/**
* Triggered when `pasteElements` is called from a paste action (context menu or key).

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

6
dist/index-umd.js vendored
View File

@@ -1,7 +1,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.svgEditor = factory());
(global = global || self, global.svgEditor = factory());
}(this, (function () { 'use strict';
// http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/
@@ -20038,10 +20038,10 @@
elem.attr.id = changedIDs[elem.attr.id];
}
if (elem.children) elem.children.forEach(checkIDs);
if (elem.children) elem.children.forEach(child => checkIDs(child));
}
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
clipb.forEach(elem => checkIDs(elem)); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
/**
* Triggered when `pasteElements` is called from a paste action (context menu or key).

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -19620,10 +19620,10 @@ var SvgCanvas = (function () {
elem.attr.id = changedIDs[elem.attr.id];
}
if (elem.children) elem.children.forEach(checkIDs);
if (elem.children) elem.children.forEach(child => checkIDs(child));
}
clipb.forEach(checkIDs); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
clipb.forEach(elem => checkIDs(elem)); // Give extensions like the connector extension a chance to reflect new IDs and remove invalid elements
/**
* Triggered when `pasteElements` is called from a paste action (context menu or key).

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long