DEV Community

Cover image for Prettier-Eslint Error -Solution by Utitofon Udoekong
Utitofon Samuel
Utitofon Samuel

Posted on

Prettier-Eslint Error -Solution by Utitofon Udoekong

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,
}.

Alt Text

Secondly, I created a .prettierignore file in my root directory. It works just like a gitignore file.
I then added the following syntax

Alt Text

With that being done, the nuxt server should reload and the error should be gone. Hope this helps

Top comments (0)