I am getting this in my terminal:
webpack compiled with 1 error Failed to compile.
[eslint]
src\App.js
Line 19:1: Delete ⏎
prettier/prettier
Search for the keywords to learn more about each error.
ERROR in [eslint]
src\App.js
Line 19:1: Delete ⏎
prettier/prettier
Search for the keywords to learn more about each error.
CodePudding user response:
Try setting the "endOfLine":"auto"
in your .prettierrc (or .prettierrc.json) file (inside the object)
Or set
'prettier/prettier': [
'error',
{
'endOfLine': 'auto',
}
]
inside the rules object of the eslintrc file. If you are using a windows machine endOfLine can be "crlf" basing on your git config.