1***@163.com
1***@163.com
  • 发布:2022-05-20 10:49
  • 更新:2022-07-20 13:32
  • 阅读:483

#插件讨论# 【 prettier - DCloud-HBuilderX团队 】bug

分类:uni-app
关联插件: Prettier

安装了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 ^

2022-05-20 10:49 负责人:无 分享
已邀请:
DCloud_HB_WDL

DCloud_HB_WDL

什么项目类型?项目目录结构,能否截图?

prettier.config.js配置的是项目的prettierc配置,能否提供下?

  • 1***@163.com (作者)

    uniapp demo项目,通过huiblderx创建,目录结构和prettier配置见截图,thanks


    2022-05-20 15:18

  • 1***@163.com (作者)

    补充下,同样项目配置在vscode的prettic插件可正常使用,请指点下hbuilderx哪块配置有问题


    2022-05-20 15:27

1***@163.com

1***@163.com (作者)

附件是包版本和eslint配置和prettic配置

v***@vtstar.net

v***@vtstar.net

现在弄好了吗

要回复问题请先登录注册