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

贡献者指南