You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> npx oxlint@latest
⚠ eslint(no-unused-vars): Variable 'char' is declared but never used.
╭─[testing.js:3:12]
2 │
3 │ for (const char of "hello") {
· ──┬─
· ╰── 'char' is declared here
4 │ counts[char]++;
╰────
help: Consider removing this declaration.
The text was updated successfully, but these errors were encountered:
Using a variable to look up a value in an object then
++
ing it doesn't count as a use, but+= 1
does. Eslint does not report anything in either casegets
The text was updated successfully, but these errors were encountered: