- 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

@@ -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);
}
},