简体   繁体   English

如何使用 reactjs 项目删除此错误“删除`⏎`更漂亮/更漂亮”?

[英]How can I remove this Error 'Delete `⏎` prettier/prettier' using reactjs project?

I am getting this in my terminal:我在我的终端中得到这个:

webpack compiled with 1 error Failed to compile. webpack 编译时出现 1 个错误无法编译。

[eslint] src\App.js Line 19:1: Delete prettier/prettier [eslint] src\App.js 第 19:1 行:删除 /prettier

Search for the keywords to learn more about each error.搜索关键字以了解有关每个错误的更多信息。 ERROR in [eslint] src\App.js Line 19:1: Delete prettier/prettier [eslint] src\App.js 第 19:1 行中的错误:删除 /prettier

Search for the keywords to learn more about each error.搜索关键字以了解有关每个错误的更多信息。

Try setting the "endOfLine":"auto" in your.prettierrc (or.prettierrc.json) file (inside the object) Or set尝试在你的.prettierrc(或.prettierrc.json)文件(对象内部)中设置"endOfLine":"auto"或设置

'prettier/prettier': [
  'error',
  {
    'endOfLine': 'auto',
  }
]

inside the rules object of the eslintrc file.在 eslintrc 文件的规则 object 内。 If you are using a windows machine endOfLine can be "crlf" basing on your git config.如果您使用的是 windows 机器 endOfLine 可以根据您的 git 配置为“crlf”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM