sindresorhus/eslint-plugin-unicorn
[unicorn/prefer-at] should avoid auto fix " parent?.childNodes[parent.childNodes.length - 1];"
Closed
#2,098 opened on May 15, 2023
bughelp wantedtypes
Repository metrics
- Stars
- (5,022 stars)
- PR merge metrics
- (Avg merge 1d 16h) (399 merged PRs in 30d)
Description
origin:
parent?.childNodes[parent.childNodes.length - 1];
after auto fix:
parent?.childNodes.at(-1);
unicorn/prefer-at
not safe