Error Delete 'CR' prettier/prettier Visual Studio Code
In the root open the .editorconfig file and change:
end_of_line = lf
to
end_of_line = auto
This should fix it for new files.
Willfrans Varón Sáenz
Updated on June 04, 2022Comments
-
Willfrans Varón Sáenz 12 monthsAfter installing Nuxt.js with this command
npx create-nuxt-app <myapp>everything working fine, but when I tried to change the styles code onlayout/default.vueI got these errors:241:9 error Insert
⏎prettier/prettierI'm using Visual Studio Code, so I changed the settings from
Preferences > settings > Extensions > Vetur, I changed theFormat > Default Formatter: CSS = noneandDefault Formatter: HTML = none.Still, the problem persists. I tried to fix using this command I found on GitHub
npm run lint -- --fixand it worked, but every time I add a new file to the project, I got the error again! So funny! I'm new in Nuxt.js.I have another's projects using only VueJS and everything working fine.
Help! Thanks in advance!