sindresorhus/eslint-plugin-unicorn
[unicorn/prefer-at] should avoid auto fix " parent?.childNodes[parent.childNodes.length - 1];"
クローズ
#2,098 opened on 2023/05/15
bughelp wantedtypes
Repository metrics
- Stars
- (5,022 個のスター)
- PR merge metrics
- (平均マージ 4h 30m) (30d で 26 merged PRs)
説明
origin:
parent?.childNodes[parent.childNodes.length - 1];
after auto fix:
parent?.childNodes.at(-1);
unicorn/prefer-at
not safe