K
K
Konstantin Shkilev2019-09-28 15:33:05
JavaScript
Konstantin Shkilev, 2019-09-28 15:33:05

Why is Eslint highlighting everything in red?

5d8f52bd3663e515879036.png
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

2 answer(s)
D
Dima Pautov, 2019-09-28
@shkilevk

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.

R
Rsa97, 2019-09-28
@Rsa97

Have you tried just reading the text at the bottom right of the screen? The one under the heading "PROBLEMS". Everything that the linter does not like is written in English in black.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question