sindresorhus/eslint-plugin-unicorn

`prefer-node-append` fixer bug #319

fisker posted onGitHub

const canvas = document.body.appendChild(document.createElement('canvas'))
const canvas = document.body.append(document.createElement('canvas'))

This can't be fixed, ParentNode.append() has no return value

https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/append


Fund this Issue

$30.00
Rewarded

Rewarded pull request

Recent activities

mrhen was rewarded by sindresorhus for sindresorhus/eslint-plugin-unicorn# 319
over 5 years ago
mrhen submitted an output to  sindresorhus/ eslint-plugin-unicorn# 319
almost 6 years ago