[Refactor] Prefer textContent over innerText (#630)

Only setters are used, so getter differences aren't involved. This may
result in a runtime change to consumers passing a Node that isn't
actually a HTMLElement.
This commit is contained in:
filtered
2025-02-27 21:11:07 +11:00
committed by GitHub
parent 1e8938ceff
commit 2104f2a8a9
2 changed files with 14 additions and 13 deletions

View File

@@ -68,6 +68,7 @@ export default tseslint.config(
"unicorn/empty-brace-spaces": "error",
"unicorn/no-nested-ternary": "error",
"unicorn/prefer-string-replace-all": "error",
"unicorn/prefer-dom-node-text-content": "error",
// Node rules: dev dependency config, etc.
"unicorn/prefer-node-protocol": "error",