Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Create .gitattributes to prevent errors with Prettier in Windows #2288

Merged
merged 2 commits into from
Oct 22, 2023

Commits on Oct 21, 2023

  1. Create .gitattributes

    It is recommended by Prettier to use LF endings for all files including in Windows, and they officially recommend to set this option in .gitattributes file for consistency, and LF is the default in Prettier 2 or higher. The lack of this file bit me in another project whose build failed in Windows in GitHub Actions due to `prettier --check` failing in Windows with default LF mode.
    
    More info: prettier/prettier#7825 (comment)
    trusktr authored Oct 21, 2023
    Configuration menu
    Copy the full SHA
    2db3f6a View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2023

  1. Configuration menu
    Copy the full SHA
    f065f98 View commit details
    Browse the repository at this point in the history