prettier问题?

一个奇怪的问题,大佬们,这个问题我不清楚是怎么发生的,想求问一下是否有大佬知道如何解决

Creating an optimized production build...
Failed to compile.

[eslint] 
src/components/Comment/index.tsx
  Line 393:17:  Insert `␍⏎·········`                          prettier/prettier
  Line 394:11:  Insert `··`                                   prettier/prettier
  Line 395:1:   Insert `··`                                   prettier/prettier
  Line 396:1:   Replace `············` with `··············`  prettier/prettier
  Line 397:1:   Insert `··`                                   prettier/prettier
  Line 398:1:   Replace `············` with `··············`  prettier/prettier
  Line 399:1:   Insert `··`                                   prettier/prettier
  Line 400:1:   Replace `············` with `··············`  prettier/prettier
  Line 401:1:   Insert `··`                                   prettier/prettier
  Line 402:11:  Insert `··`                                   prettier/prettier
  Line 403:1:   Insert `··`                                   prettier/prettier

Search for the keywords to learn more about each error.


 ELIFECYCLE  Command failed with exit code 1.
build failed exit status 1new_answer is not exist build failed

The command '/bin/bash -c script/build_plugin.sh' returned a non-zero code: 1
阅读 583
1 个回答

把文件行尾格式从LF改为CRLF即可,或这个改prettier配置

{
    endOfLine:'auto'
}
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题