const str = '123'.slice(1) // <-- maybe string.slice() triggers the bug
for (let i = 0; i < str.length; i++) { // <-- unicorn/no-for-loop
console.log(str[i], i)
}
after auto-fix:
const str = '123'.slice(1)
for (const [i, element] of str.entries()) { // <-- Property 'entries' does not exist on type 'string'
console.log(element, i)
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too