🔧 This rule is automatically fixable by the --fix CLI option.
Enforce consistent linebreaks in templates.
Having consistent linebreaks is important to make sure that the source code is rendered correctly in editors.
This rule enforces consistent line endings in templates, independent of the operating system.
This rule accepts a single string option:
"unix"(default) — enforces the usage of Unix line endings:\nfor LF"windows"— enforces the usage of Windows line endings:\r\nfor CRLF"system"— enforces the usage of the current platform's line ending
Examples of incorrect code with the default "unix" config:
Examples of correct code with the default "unix" config:
Examples of incorrect code with the "windows" config:
Examples of correct code with the "windows" config:
- linebreak-style from eslint