ember/template-linebreak-style
March 12, 2026 ยท View on GitHub
๐ง 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.
Rule Details
This rule enforces consistent line endings in templates, independent of the operating system.
Config
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
Examples of incorrect code with the default "unix" config:
<div>test</div>\r\n
Examples of correct code with the default "unix" config:
<div>test</div>\n
Examples of incorrect code with the "windows" config:
<div>test</div>\n
Examples of correct code with the "windows" config:
<div>test</div>\r\n
Related Rules
- linebreak-style from eslint