R
R
RedSmoke_smr2019-04-05 14:29:20
JavaScript
RedSmoke_smr, 2019-04-05 14:29:20

Why does WebStrom say there is an error in the code?

Good afternoon!
Please tell me why my editor swears at an error in the code?
I spied this code template from one person and decided to apply it (for building galp) in my project, the code itself works successfully galp builds and compiles correctly without errors, but the editor itself swears at how the code looks, thereby emphasizing the pug file itself .js is red and highlights the code with a light yellow background that does not turn off, please tell me how to solve this problem so that the editor does not give errors?
I'm sorry if this is a stupid question, but I'm just learning everything and I don't understand a lot)
5ca73b62b7473986090367.png5ca73b66c584b176099849.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Okhotnikov, 2019-04-05
@RedSmoke_smr

You need to switch to es6 syntax and at the same time remove the extra return from the arrow function

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question