remove the warning for no-reference-in-iterator (at least temporarly)
parent
b7fccd59d5
commit
db607768a7
|
@ -360,6 +360,7 @@ module.exports = {
|
|||
ignoreRegExpLiterals: true
|
||||
} */
|
||||
'unicorn/prefer-query-selector': 'off',
|
||||
'unicorn/no-fn-reference-in-iterator': 'off',
|
||||
'unicorn/prefer-node-append': 'off',
|
||||
'unicorn/no-zero-fractions': 'off',
|
||||
'unicorn/prefer-number-properties': 'off',
|
||||
|
|
|
@ -1220,7 +1220,7 @@ export const getElem = (supportsSelectors())
|
|||
}
|
||||
: function (id) {
|
||||
// jQuery lookup: twice as slow as xpath in FF
|
||||
return $(svgroot_).find('[id=' + id + ']')[0];
|
||||
return $(svgroot_).find(`[id=${id}]`)[0];
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
||||
/**
|
||||
* @file ext-connector.js
|
||||
*
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable unicorn/no-fn-reference-in-iterator */
|
||||
/* globals jQuery */
|
||||
/**
|
||||
* Localizing script for SVG-edit UI.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* eslint-disable indent, unicorn/no-fn-reference-in-iterator */
|
||||
/* eslint-disable indent */
|
||||
/* globals jQuery, jsPDF */
|
||||
/**
|
||||
* Numerous tools for working with the editor's "canvas".
|
||||
|
|
Loading…
Reference in New Issue