Eslint 报错 error: Parsing error: ImportDeclaration should appear when the mode is ES6 and in the modu
在Eslint检查是出现:error:Parsingerror:ImportDeclarationshouldappearwhenthemodeisES6andinthemodulecontexta解决办法:在.eslintrc.js里添加parserOptions:{parser:'babel-eslint',//ecmaVersion:'latest',//把latest这里修改一下就好了ec