midudev/vota.dev

[Windows] "delete ␍ eslint prettier/prettier"

edgarguitarist opened this issue · 0 comments

Root cause of the problem

image

The culprit is git... a configuration property "core.autocrlf".
For historical reasons in windows, linux and mac have the line breaks of the text file under are inconsistent.

  • Windows: At the time of line break, carriage return is used at the same time CR(carriage-return character) and line breaks LF(linefeed character) needing CRLF.
  • Mac and Linux System, only use the newline character LF
  • Old version Mac the system uses carriage return CR

image

Solution

  • What needs to be done to fix this error is to change the "AutoCRLF" property to false
git config --global core.autocrlf false
  • Next you need to pull the code again.
  • Finally check if in VSCode is setted LF and not CRLF

image

REFERENCE

https://developpaper.com/solution-to-delete-%E2%90%8Deslint-prettier-prettier-error/