【ESLint】报错 warning Delete `␍` prettier/prettier

Report an error

Format error

reason

When downloading the code, the line feed character LF (linefeed character) will be automatically converted into the carriage return character CRLF (carriage-return character).

Insert image description here

Solution

Run the following statement and see where the error statement appears. 

npm run lint --fix 

Run the following statement to turn off automatic conversion

git config --global core.autocrlf false

Reference link:  warning Delete `␍` prettier/prettier

Guess you like

Origin blog.csdn.net/wuli_youhouli/article/details/128578449