简体   繁体   中英

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.

[eslint] src\App.js Line 19:1: Delete prettier/prettier

Search for the keywords to learn more about each error. ERROR in [eslint] src\App.js Line 19:1: Delete prettier/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

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

inside the rules object of the eslintrc file. If you are using a windows machine endOfLine can be "crlf" basing on your git config.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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