TypeScript disallows type hinting the variable in a for-of loop. When the unicorn/no-for-loop
is used, it assigns an array type to the variable, which is invalid TypeScript.
unicorn/no-for-loop
const stringData: string[] = ["a", "b", "c"];
for (int i=0; i<stringData.length; i++){
const item: string = stringData[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