Reputation: 5522
I'm working on my first Vue project in the company that I work. I have noticed when I run the project I get warnings that they have be fixed using --fix
all the warnings are related with indentation, spaces, new lines and things like that. Is there a formatter for Vue? I was using the default VS Code format on save but didn't help with the warnings.
Upvotes: 0
Views: 173
Reputation: 64312
As of this writing, the gold standard for linting JavaScript is eslint. For Vue, you can use eslint-plugin-vue.
The user guide will walk you through how to install and configure, and how to integrate it into your editor.
Upvotes: 1