You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
The configuration specifies always for array-bracket-spacing, object-curly-spacing, and space-in-parens, which while including built-in exceptions for allowing omission of spacing for empty arrays, objects, and functions, does not enforce the omissions.
The docs for the space-in-parens rule details how to define such exceptions, but it's unclear how these apply to equivalent array and object rules (confusingly, the exceptions docs show empty objects and arrays).
Guideline:
https://github.com/Automattic/wp-calypso/blob/master/docs/coding-guidelines/javascript.md#spacing
The configuration specifies
always
forarray-bracket-spacing
,object-curly-spacing
, andspace-in-parens
, which while including built-in exceptions for allowing omission of spacing for empty arrays, objects, and functions, does not enforce the omissions.The docs for the
space-in-parens
rule details how to define such exceptions, but it's unclear how these apply to equivalent array and object rules (confusingly, the exceptions docs show empty objects and arrays).Related: Automattic/wp-calypso#8128 (comment) (cc @mattm @yoavf)
The text was updated successfully, but these errors were encountered: