From: Thomas Lamprecht Date: Thu, 9 Apr 2020 16:29:46 +0000 (+0200) Subject: rules: dot-location: set location parameter to property X-Git-Url: https://git.proxmox.com/?p=pve-eslint.git;a=commitdiff_plain;h=ca06ae98f230edcb373ccaab7a7017a609ce620c 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 --- diff --git a/src/app.js b/src/app.js index c00079a..c01130a 100644 --- a/src/app.js +++ b/src/app.js @@ -120,7 +120,7 @@ const defaultConfig = { "block-scoped-var": "error", "consistent-return": "error", "curly": ["error", "multi-line"], - "dot-location": "error", + "dot-location": ["error", "property"], "dot-notation": "error", "eqeqeq": "error", "grouped-accessor-pairs": "error",