Rule: linebreak-style

Enforces a consistent linebreak style.

Notes:
Has Fixer

Config

One of the following options must be provided:

  • "LF" requires LF (\n) linebreaks
  • "CRLF" requires CRLF (\r\n) linebreaks
Config examples
"linebreak-style": [true, "LF"]
"linebreak-style": [true, "CRLF"]
Schema
{
  "type": "string",
  "enum": [
    "LF",
    "CRLF"
  ]
}