mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-10-04 16:10:05 +00:00
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:
parent
be566999a0
commit
ca06ae98f2
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user