安装了eslint eslint-plugin-vue 后 在安装prettier 格式化代码报下面错误,prettier.config.js配置的是项目的prettierc配置
[Format] 11:30:44.778 No parser and no filepath given, using 'babylon' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred. [Format] 11:30:44.778 [Format] 11:30:44.778 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/formator-prettier/node_modules/prettier/index.js:10611 [Format] 11:30:44.778 throw error; [Format] 11:30:44.778 ^
1***@163.com (作者)
uniapp demo项目,通过huiblderx创建,目录结构和prettier配置见截图,thanks
2022-05-20 15:18
1***@163.com (作者)
补充下,同样项目配置在vscode的prettic插件可正常使用,请指点下hbuilderx哪块配置有问题
2022-05-20 15:27