Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Enable end-of-line normalization with Git attributes #30

Closed
staticdev opened this issue May 17, 2020 · 0 comments · Fixed by #31
Closed

Enable end-of-line normalization with Git attributes #30

staticdev opened this issue May 17, 2020 · 0 comments · Fixed by #31
Labels
style Style

Comments

@staticdev
Copy link
Owner

This setting converts line endings to UNIX-style (LF), whenever text files are checked into and out of the repository.

Without this setting, the pre-commit hook for Prettier fails on the Windows runner. GitHub Actions configures git with core.autocrlf = true, because this is the default setting in Git for Windows.

https://prettier.io/docs/en/options.html#end-of-line
actions/checkout#135

@staticdev staticdev added the style Style label May 17, 2020
@staticdev staticdev mentioned this issue May 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
style Style
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant