kyang6 / llmparser

Classify and extract structured data with LLMs
https://llmparser.com
MIT License
407 stars 23 forks source link

add support for automatic end of line detection in Prettier to avoid warnings on Windows #4

Closed raulmarindev closed 1 year ago

raulmarindev commented 1 year ago

Description of change

For historical reasons, the line breaks of the text file on windows and Linux are different.

Therefore, there will be incompatibility problems when text files are created and used in different systems.

This happened to me because I'm on a Windows computer, but the code was generated on a Mac or Linux computer.

With the present change, Prettier will try to determine the appropriate line ending style (e.g., LF or CRLF) based on the current file or the environment. It helps maintain consistent line endings across different platforms and operating systems.

I hope this helps making contributing to the project from Windows easier.

Pull-Request Checklist

kyang6 commented 1 year ago

Super interesting, thank you for the explanation!

Everything looks good, will merge into develop.