J
J
JastaFly2020-07-07 20:53:08
phpstorm
JastaFly, 2020-07-07 20:53:08

Set up PHPStorm for Vue to work?

Good day to all! Started learning Vue. But I ran into a problem that PHPStorm constantly swears at something like this:
5f04b5ed16c33259036943.jpeg
This does not affect the performance of the code, but what does he not like?!?? Vue has different views on nesting?!?? And how to make PHPStorm and Vue friends?!??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aetae, 2020-07-07
@Aetae

Use vue create to create a project, choose eslint+prettier and PHPStorm will pull everything up as it should.
Unless you may need to set the vueIndentScriptAndStyle option to .eslintrc.js.

S
segio_tt, 2020-07-07
@art055

Today I just ran into this thing, it is solved elementarily, in the horse you create a file and vue.config.js and ignore it there, or rather, I installed this plugin through vue ui and it created this file for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question