💅 The extends: 'stylistic'
property in a configuration file enables this rule.
Having consistent linebreaks is important to make sure that the source code is rendered correctly in editors.
N/A
This rule is configured with a boolean, or a string value:
- boolean --
true
for enforcing consistency (allCRLF
or allLF
not both in a single file) - string --
system
for the current platforms default line ending /unix
for LF linebreaks /windows
for CRLF linebreaks
If .editorconfig
file present, rule configuration will be inherit from it.