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)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post