The console error message is as follows
F:\aaaaa\dice-front\store\tag.js
1:30 error Delete `␍` prettier/prettier
2:11 error Delete `␍` prettier/prettier
3:3 error Delete `␍` prettier/prettier
4:1 error Delete `␍` prettier/prettier
5:27 error Delete `␍` prettier/prettier
Solution 1: automatically identify the end
Add this to the first set in the project .pretierrc file.
"endOfLine": "auto"
Solution 2:
In the project In the .editorconfig file, Change end_of_line to CRLF. (used globally if possible)
Reason: git ends with CRLF and LF on different computers
The newline characters of text files under windows and Linux are inconsistent.
During line feed
windows uses both carriage return character Cr (carriage return character) and line feed character LF (linefeed character)
Mac and Linux systems only use the line feed LF
the old MAC system used the carriage return CR.
Read More:
- [Solved] Failed to load config “prettier“ to extend from.?
- eslint Error: Delete `␍` [How to Solve]
- [Solved] VUE eslint Error: Expected linebreaks to be ‘LF‘ but found ‘CRLF
- [Solved] Vue3 Error: error Delete `··` prettier/prettier
- [Solved] ESLint: Parsing error: Unexpected token(prettier/prettier)
- Newline required at end of file but not found eol-last [How to Solve]
- [Solved] Prittier format code error: JSON Error in…
- [Vue Run Error] Module build failed: Error: Couldn‘t resolve parser “babylon“
- Vscode save Vue format eslint check error [How to Solve]
- [Solved] React Click the Event to Modify the State Value Error
- Difference between innerHTML and innerText
- Error when Python executes JavaScript statement
- [Weex]Error in creating project NPM: unable to load file D:\program files\nodejs\node_ global\ weex.ps1 Because scripts are not allowed to run on this system.
- [Solved] Vite Error: Failed to load module script: Expected a JavaScript module script but the server…
- Cnpm install vuecli error [How to Solve]
- How to Solve NPM installation -g @view/client Error
- [Solved] Msbuild: error msb3428: the group cannot use the visual c + + function “vcbuild. Exe”.
- The addition, deletion and modification of DOM in JS Foundation
- Method of adding operation button for each line of data in DataGrid of easyUI
- CSS text more than 2 lines hidden and show ellipsis