eslint报错:Parsing error: No Babel config file detected?

 problem causes:

Babel's configuration file is searched in the root directory by default, and the directory opened by my editor is not the directory where I am running the project now:

I entered the project from the parent folder cd, not directly opened and run under the file

So as long as it runs under the root path, this error problem will be solved. 

Guess you like

Origin blog.csdn.net/leraning_/article/details/128174163