A
A
Alexey2020-05-24 19:18:44
webstorm
Alexey, 2020-05-24 19:18:44

Why is Webstorm throwing an error? How to set it up?

I'm trying to master webstorm, the question arose - why in the for loop does he suggest declaring a variable before the loop? And that means he stubbornly offers me to declare let before the cycle. As far as I understand, this is from ES5, but in general, exclusively codestyle. In the settings I did not find how to cancel. And yet, does anyone have a guide for setting up this IDE in Russian? Found in English, but still hard to set up.
for(let i = 0; i <= arr.length; i++) {}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2020-05-24
@abberati

Place the cursor where the error is and press alt + enter. From the dropdown menu select "turn off this rule"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question