sindresorhus/eslint-plugin-unicorn
View on GitHub[unicorn/prefer-at] should avoid auto fix " parent?.childNodes[parent.childNodes.length - 1];"
Open
#2,098 opened on May 15, 2023
bughelp wantedtypes
Description
origin:
parent?.childNodes[parent.childNodes.length - 1];
after auto fix:
parent?.childNodes.at(-1);
unicorn/prefer-at
not safe