From ca06ae98f230edcb373ccaab7a7017a609ce620c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 9 Apr 2020 18:29:46 +0200 Subject: [PATCH] rules: dot-location: set location parameter to property MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.39.2