Vue's newly created project will report an error error Delete `⏎⏎` prettier/prettier or error Delete `␍`prettier/prettier as long as there is a space or a line break

There is also this situation warning Replace `xxxx` with `xxxx` prettier/prettier

It may be that running the project after eslint configuration has the following warning ( line break format problem )

A problem has troubled me all afternoon. As long as there is a space or a line of code is deleted or a line is changed, an error will be reported. The thief is confused. I have searched a lot and tried many methods, but it is not feasible.

finally!

Solution

There is a package.json file in the root directory

Find the rules, write this piece of code in it and re-run the project.

"prettier/prettier": "off"

Guess you like

Origin blog.csdn.net/stars______/article/details/128980272