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

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

Closed
staticdev opened this issue May 17, 2020 · 0 comments
Closed

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

staticdev opened this issue May 17, 2020 · 0 comments
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
style Style
Projects
None yet
Development

No branches or pull requests

1 participant