warning: LF will be replaced by CRLF in package.json. code example

Example 1: The file will have its original line endings in your working directory

# If you are a single developer working on a windows machine,
# and you don't care that git automatically replaces LFs to CRLFs,
# you can turn this warning off by typing the following in the git command line

git config core.autocrlf true

Example 2: warning: LF will be replaced by CRLF

git config --global core.autocrlf true

Example 3: LF will be replaced by CRLF in assets

git config core.autocrlf true

Example 4: lf will be replaced by crlf

Linux and MacOS: use characters as in file
$ git config --global core.autocrlf input

Windows: deactivate the automatic conversion to CRLF
$ git config --global core.autocrlf false

Example 5: warning: LF will be replaced by CRLF

git config core.autocrlf true

Example 6: LF would be replaced by CRLF in package-lock.json

git config --global core.safecrlf false