Answer the question
In order to leave comments, you need to log in
VSC has Prettier for formatting, and Nuxt.js project has ESLint installed - and they conflict, how to set it up?
Prettier suits me (I work mainly with Laravel), but then a Nuxt project fell into my hands - ESLint is there, and they directly conflict with Prettier - everything that Prettier formats - ESLint rejects )))
I had to comment out ESLint in the Nuxt config.
But maybe you can make them friends somehow? ))
How to do it?
I basically like that ESLint wants single quotes...
In general, what to do?
Why do they generally look at the world differently? :)
Answer the question
In order to leave comments, you need to log in
https://www.npmjs.com/package/eslint-plugin-prettier
In general, but prettier took on many languages at once, but not one does well, IMHO. However, it has too few configuration options for such a tool. The same eslint (perhaps somewhere with plugins) fully covers all the possibilities of prettier, allowing you to flexibly configure everything according to the agreements in a specific team. But this is all just my opinion.
There are two (and a half) normal options:
a) turn off Prettier (on this project)
b) change the eslint configs to those compatible with Prettier
c) change the Prettier config (but there are one and a half settings) and still you will most likely have to change eslint
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question