sindresorhus/eslint-plugin-unicorn
Auf GitHub ansehen[unicorn/prefer-at] should avoid auto fix " parent?.childNodes[parent.childNodes.length - 1];"
Open
#2.098 geöffnet am 15. Mai 2023
bughelp wantedtypes
Beschreibung
origin:
parent?.childNodes[parent.childNodes.length - 1];
after auto fix:
parent?.childNodes.at(-1);
unicorn/prefer-at
not safe