Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an alternative for @vue/cli-plugin-eslint that uses prettier-eslint #4770

Open
nolde opened this issue Oct 29, 2019 · 1 comment
Open

Comments

@nolde
Copy link

nolde commented Oct 29, 2019

What problem does this feature solve?

Vue-cli already offers, out of the box, linting/styling using prettier, standard or airbnb presets.

But what about using prettier along with some of these other setups? Prettier is a lot more apt at styling the code than eslint is, and using it alongside different linters usually make sense.

By having an alternative to @vue/cli-plugin-eslint that instead of calling plain eslint, calls prettier-eslint would allow more flexibility when mixing prettier with different linting presets.

As far as I can see, code would be exactly the same, just passing in prettier configuration.

What does the proposed API look like?

vue-cli-service prettier-lint
@jdinartejesus
Copy link

Hi @nolde, supposedly the new recommended way is using eslint-plugin-prettier but I didn't find a way to integrate with vue-cli 4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants