]> git.proxmox.com Git - pve-eslint.git/commit
rules: dot-location: set location parameter to property
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Apr 2020 16:29:46 +0000 (18:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 9 Apr 2020 16:30:40 +0000 (18:30 +0200)
commitca06ae98f230edcb373ccaab7a7017a609ce620c
tree6838aa6da8048900a5c8bed5e366bb21aa858ff3
parentbe566999a03fccd470f1df74f9b4e7c8d5472211
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>
src/app.js