rules: dot-location: set location parameter to property

who the heck makes the following syntax the default:
> foo.
>    bar().
>    baz();

So let's enforce the right thing™ and enforce the dot sticking to the
property, not the object, i.e.:

> foo
>    .bar().
>    .baz();

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-04-09 18:29:46 +02:00
parent be566999a0
commit ca06ae98f2

View File

@ -120,7 +120,7 @@ const defaultConfig = {
"block-scoped-var": "error", "block-scoped-var": "error",
"consistent-return": "error", "consistent-return": "error",
"curly": ["error", "multi-line"], "curly": ["error", "multi-line"],
"dot-location": "error", "dot-location": ["error", "property"],
"dot-notation": "error", "dot-notation": "error",
"eqeqeq": "error", "eqeqeq": "error",
"grouped-accessor-pairs": "error", "grouped-accessor-pairs": "error",