2

I'm using nuxtjs, and I installed eslint on my project, and upon using npm run dev, I get a bombardment of errors. How can I fix this:

S. Hesam
  • 5,266
  • 3
  • 37
  • 59
  • Does this answer your question? [Why do I keep getting "\[eslint\] Delete \`CR\` \[prettier/prettier\]"?](https://stackoverflow.com/questions/53516594/why-do-i-keep-getting-eslint-delete-cr-prettier-prettier) – asportnoy Apr 13 '23 at 00:43

1 Answers1

13

This error is related to Windows Line endings being different from Unix ones. Try running npx prettier --write . on your project's directory. This command will tell prettier to fix simple errors (such as this one) when found.

To prevent this error from happening again you can either set "end-of-line" to auto on your .prettierrc file or try setting line endings to "Unix"/LF on your editor: instructions for VSCode and for IntelliJ-based editors