docs: autocrlf option of Travis CI

This commit is contained in:
Georgii Dolzhykov committed 2020-03-24 04:24:10 +02:00
1 parent c1dd17cf38
commit b4a5225770
3 files changed
+4 -2

No files matched your search

@@ -347,7 +347,7 @@ If you want to make sure that your entire git repository only contains Linux-sty
1. Ensure Prettier’s `endOfLine` option is set to `lf` (this is a default value since v2.0.0)
1. Configure [a pre-commit hook](precommit.md) that will run Prettier
1. Configure Prettier to run in your CI pipeline using [`--check` flag](cli.md#check)
1. Configure Prettier to run in your CI pipeline using [`--check` flag](cli.md#check). If you use Travis CI, set [the `autocrlf` option](https://docs.travis-ci.com/user/customizing-the-build#git-end-of-line-conversion-control) to `input` in `.travis.yml`.
1. Add `* text=auto eol=lf` to the repo's `.gitattributes` file.
You may need to ask Windows users to re-clone your repo after this change to ensure git has not converted `LF` to `CRLF` on checkout.