Eslint about CRLF or LF error

Source: Internet
Author: User

When pulling the project code, if there is eslint code check, but the local open will be in CRLF or LF error error, then how to deal with it?

Git has an auto-convert line-break feature that automatically converts a newline format when a file commits;

Do not want to use, you can also through the git config--global Core.autocrlf false   off;

How to use Vscode so you can set this up, file - Preferences - settings -Search: Default end-of-line characters. Revision changed to

\ n

If the above action has not solved your problem, you can refer to: Link

Eslint about CRLF or LF error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.