I encountered the prettier/prettier error above in my nuxt.js project and tried a few things in fixing it.
Firstly, I changed the rules for prettier in the .eslintrc.js file to
rules: {
'prettier/prettier': 0,
}.
Secondly, I created a .prettierignore file in my root directory. It works just like a gitignore file.
I then added the following syntax
With that being done, the nuxt server should reload and the error should be gone. Hope this helps
Top comments (0)