Answer the question
In order to leave comments, you need to log in
Why is Eslint highlighting everything in red?
Good time of the day. The real question is, why doesn't he like it?
Answer the question
In order to leave comments, you need to log in
Just correct the code according to the rules by clicking on the red line, a red dot will appear, there will be a fix item in the menu. On the other hand, what would you like to see by connecting the linter?
You have tabs for indentation, and he needs 2 spaces. Plus the conditions != or == well, this is a kindergarten. !== or === should be, well, etc. Write the code right!!! The function must be declared correctly, with 2 spaces, before and after the parentheses, but you have it all together.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question