Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 352 Bytes

array-indentation.md

File metadata and controls

27 lines (20 loc) · 352 Bytes

Check indentation of a literal array expression (array-indentation)

This rule aims to keep consistent formatting on a literal array expression. Multi-line arrays should end at the same indentation as the line where they started.

Invalid example:

a = [
   3, 4];

Valid example:

a = [
   3, 4
];

// OR

a = [
   3,
   4
];
--