Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 420 Bytes

Style-HashAsLastArrayItem.md

File metadata and controls

21 lines (13 loc) · 420 Bytes

Pattern: Malformed braces around hash as last array item

Issue: -

Description

Checks for presence or absence of braces around hash literal as a last array item depending on configuration.

Examples

# bad
[1, 2, one: 1, two: 2]

# good
[1, 2, { one: 1, two: 2 }]

Further Reading