2 title: no-whitespace-before-property
8 JavaScript allows whitespace between objects and their properties. However, inconsistent spacing can make code harder to read and can lead to errors.
16 This rule disallows whitespace around the dot or before the opening bracket before properties of objects if they are on the same line. This rule allows whitespace when the object and property are on separate lines, as it is common to add newlines to longer chains of properties:
25 Examples of **incorrect** code for this rule:
30 /*eslint no-whitespace-before-property: "error"*/
49 Examples of **correct** code for this rule:
54 /*eslint no-whitespace-before-property: "error"*/
80 Turn this rule off if you do not care about allowing whitespace around the dot or before the opening bracket before properties of objects if they are on the same line.