remove the warning for no-reference-in-iterator (at least temporarly)

This commit is contained in:
JFH
2020-07-25 19:31:51 +02:00
parent b7fccd59d5
commit db607768a7
6 changed files with 5 additions and 8 deletions

View File

@@ -746,7 +746,7 @@ const jml = function jml(...args) {
while (node.childNodes[j]) {
const cn = node.childNodes[j];
cn.remove(); // `j` should stay the same as removing will cause node to be present
} // eslint-disable-next-line unicorn/no-fn-reference-in-iterator
}
attVal.childNodes.forEach(_childrenToJML(node));
@@ -773,13 +773,11 @@ const jml = function jml(...args) {
}
if (attVal.head) {
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
attVal.head.forEach(_appendJML(head));
}
}
if (attVal.body) {
// eslint-disable-next-line unicorn/no-fn-reference-in-iterator
attVal.body.forEach(_appendJMLOrText(body));
}
}
@@ -1048,7 +1046,7 @@ const jml = function jml(...args) {
// Todo: Fix to allow application of stylesheets of style tags within fragments?
return nodes.length <= 1 ? nodes[0] // eslint-disable-next-line unicorn/no-fn-reference-in-iterator
return nodes.length <= 1 ? nodes[0] // eslint-disable-next-line
: nodes.reduce(_fragReducer, doc.createDocumentFragment()); // nodes;
}