google / eslint-config-google

ESLint shareable config for the Google JavaScript style guide
Apache License 2.0
1.75k stars 139 forks source link

dot-location rule should be configured as ['error', 'object'] #22

Closed kazarmy closed 8 years ago

kazarmy commented 8 years ago

The Google Style Guide states that for dot operators in multiline expressions, the dot operator should be on the preceding line:

var x = foo.bar().
    doSomething().
    doSomethingElse();

However, xo configures the dot-location rule as:

'dot-location': ['error', 'property']

which mandates that the dot operator be on the following line. This should be overriden by eslint-config-google as follows:

'dot-location': ['error', 'object']
kazarmy commented 8 years ago

Closing due to PR #23.