Why do I keep getting Delete 'cr' [prettier/prettier]?
Try setting the "endOfLine":"auto"
in your .prettierrc file (inside the object)
Or set
'prettier/prettier': [ 'error', { 'endOfLine': 'auto', }]
inside the rules object of the eslintrc file.
If you are using windows machine endOfLine can be "crlf" basing on your git config.
In my windows machine, I solved this by adding the below code snippet in rules
object of .eslintrc.js
file present in my current project's directory.
"prettier/prettier": [ "error", { "endOfLine": "auto" }, ],
This worked on my Mac as well