I try to follow the instructions to run the project on vscode but get the error:
(linebreak-style) Expected linebreaks to be ‘CRLF‘ but found ‘LF‘ linebreak-style.
Then i find out the reason is using vscode to run this project. So i think maybe announce this situation in docs maybe helpful for windows users and people not familar with project . And the solution is very simple, only one line code can solve the problem
Solution
edit the file .eslintrc and change the attribute linebreak-style in rules as follow:
"rules": { "linebreak-style": [0,"error", "windows"], }
Then you can run npm run dev successfully.
A suggestion on docs about running the project
I try to follow the instructions to run the project on vscode but get the error:
(linebreak-style) Expected linebreaks to be ‘CRLF‘ but found ‘LF‘ linebreak-style
. Then i find out the reason is using vscode to run this project. So i think maybe announce this situation in docs maybe helpful for windows users and people not familar with project . And the solution is very simple, only one line code can solve the problemSolution
edit the file
.eslintrc
and change the attributelinebreak-style
inrules
as follow:"rules": { "linebreak-style": [0,"error", "windows"], }
Then you can runnpm run dev
successfully.