Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 430 Bytes

dot-location.md

File metadata and controls

21 lines (13 loc) · 430 Bytes

Pattern: Inconsistent newline for dot

Issue: -

Description

JavaScript allows you to place newlines before or after a dot in a member expression.

Consistency in placing a newline before or after the dot can greatly increase readability.

var a = universe.
        galaxy;

var b = universe
       .galaxy;

Further Reading