sindresorhus/eslint-plugin-unicorn

[unicorn/prefer-at] should avoid auto fix " parent?.childNodes[parent.childNodes.length - 1];"

Open

#2,098 建立於 2023年5月15日

在 GitHub 查看
 (8 留言) (1 反應) (0 負責人)JavaScript (5,022 star) (468 fork)user submission
bughelp wantedtypes

描述

origin:

parent?.childNodes[parent.childNodes.length - 1];

after auto fix:

parent?.childNodes.at(-1);

unicorn/prefer-at

not safe

貢獻者指南