跳到主要内容

linebreaks

Warning

This rule is deprecated and will be removed in the future. See the migration guide.

Specify unix or windows linebreaks.

The fix option can automatically fix all of the problems reported by this rule.

Options

string: "unix"|"windows"

"unix"

Linebreaks must always be LF (\n).

Lines with CRLF linebreaks are considered problems.

"windows"

Linebreaks must always be CRLF (\r\n).

Lines with LF linebreaks are considered problems.