Patricio Vargas
Patricio Vargas

Reputation: 5522

how to format code to avoid warnings - Vue

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

Answers (1)

David Weldon
David Weldon

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

Related Questions