nickytonline / astro-partykit-starter

https://astro-partykit-react-starter.netlify.app
8 stars 5 forks source link

Bug: Delete `CR` eslint(prettier/prettier) error #13

Open adiati98 opened 6 months ago

adiati98 commented 6 months ago

Describe the bug

When I worked on the Party.tsx file, I got 75 error messages of "Delete CR eslint(prettier/prettier)". I'm on Windows machine, so this error probably only affect Windows users.

To Reproduce

  1. Open VS Code in Windows machine.
  2. Open any .tsx file.
  3. You will see lots of red warnings in the file.
  4. Click "PROBLEMS" tab on the panel bar.
  5. You will see the details of the error: "Delete CR eslint(prettier/prettier)".

Expected behavior

This error should not occur.

Screenshots

delete cr

Suggested Solutions

Add rules to eslint.cjs file by setting set the endOfLine property to auto.

Here is a resource to handle the error issue: https://bobbyhadz.com/blog/eslint-delete-cr-prettier

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

github-actions[bot] commented 6 months ago

Thanks for the issue, our team will look into it as soon as possible! If you would like to work on this issue, please wait for us to decide if it's ready. The issue will be ready to work on once we remove the "needs triage" label.

To claim an issue that does not have the "needs triage" label, please leave a comment that says ".take".

For full info on how to contribute, please check out our contributors guide.

nickytonline commented 6 months ago

Thanks for reporting Ayu!