unicorn/prefer-dom-node-text-content
eslint-plugin-unicorn
Suggestion
eslint.config.js
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/prefer-dom-node-text-content": "error",
},
},
];